Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

mod rewrite why?

9:04 pm on Apr 16, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 7, 2003
votes: 0

What are the advantages of using mod rewrite as apposed to using a query in your URL to determine what page to show?
9:07 pm on Apr 16, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member jeremy_goodrich is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 4, 2000
votes: 0

Some search engines limit the urls that they crawl to those with 1 or at most 2 variables in the string.

So, products/widgets/10 might be OK for a search engine, while


might not be fetched by any crawlers because it has 2 variables. Though I am seeing more dynamic stuff indexed than in years past, it's still a consideration to keep in mind. :)

10:01 pm on Apr 16, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Aug 29, 2002
votes: 0

There is another reason for using mod_rewrite:
A URL which looks like
isn't very nice for human visitors, whereas
is easier to understand.

And of course you can even go one step further and use an URL like:
(assumed that the category #123 contains pages on marketing)

In other words: With mod_rewrite it's easier to use URLs which tell the user what they will find behind it.