Re: [users@httpd] mod_rewrite vs Content Management Systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't understand this file system, but it sounds
like you're referring to folders that list articles
about various species. In fact, my pages will consist
of a variety of articles, as well as snippets of
information  from a MySQL database.

For example, consider two static pages, each with a
different $mycode value on the head section:

$mycode = 'wolf';
$mycode = 'tiger';

One would draw data related to the wolf from the
database, while the other would display information
about the tiger.

I haven't yet figured out how CMS's use a single page
or template to display different articles. But it
seems like it could be done by simply replacing
$mycode = 'wolf'; with a variable - $mycode =
'[VARIABLE]';

Then, if a visitor clicked a link to kangaroo, that
would somehow be translated to $mycode = 'kangaroo';.

And since my database will include a variety of
scientific names and common names - like wolf, Canis
lupus, etc. - it should be relatively easy to insert
those in my URL's. For example, a URL might look
something like this:

www.geozoo.org/stacks;id=Canis_lupus

I would then like to use mod_rewrite to clean it up so
that it displays it like this:

www.geozoo.org/stacks/Canis_lupus

It would also be cool if it could display additional
search engine-friendly links from my database, like...

www.geozoo.org/stacks/wolf
www.geozoo.org/stacks/Canis_lupus
www.geozoo.org/stacks/loupe

But the message I'm getting is that this is hard to do
with mod_rewrite, so I'd be better off sticking with a
CMS.

Thanks.


--- Sean Conner <sean@xxxxxxxxxx> wrote:

> It was thus said that the Great David Blomstrom once
> stated:
> > 
> > I want to create a content management system that
> > produces user/search engine-friendly URL's like
> these:
> > 
> > www.geozoo.org/stacks/Carnivora/
> > www.geozoo.org/kids/Carnivora/
> > www.geozoo.org/stacks/Canidae/
> > www.geozoo.org/kids/Canidae/
> > www.geozoo.org/stacks/Canis_lupus/
> > www.geozoo.org/kids/Canis_lupus/
> > 
> > As you can see, there will be two versions of each
> > article, one for adults, the other for kids.
> > 
> > I think this is done with Apache's mod_rewrite
> > function, right? I'm currently playing with Mambo
> and
> > Drupal, each of which apparently has its own
> system
> > for doing this. Mambo has two basic versions -
> 404SEF
> > and Xaneon - both of which are all over the map.
> They
> > come in different versions, some of which are no
> > longer supported and appear to be very hard to
> > install.
> 
>   So far, what you describe could be done by the
> file system.  You have your
> "htdocs" directory, under that you have "kids" and
> "stacks" then under each
> of those you have "Carnivore", "Canidae" and
> "Canis_lupus".  If an article
> appears under both unchanged, you can save space by
> using symbolic links (or
> shortcuts if you're under Windows).  I don't see
> where mod_rewrite comes in.
> 
>   -spc
> 
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest:
> users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail:
> users-help@xxxxxxxxxxxxxxxx
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux