homepage Welcome to WebmasterWorld Guest from 54.166.113.249
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
mod rewrite why?
mikemcs

10+ Year Member



 
Msg#: 250 posted 9:04 pm on Apr 16, 2003 (gmt 0)

What are the advantages of using mod rewrite as apposed to using a query in your URL to determine what page to show?

 

jeremy goodrich

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



 
Msg#: 250 posted 9:07 pm on Apr 16, 2003 (gmt 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

products.php?item=widgets&price=10

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. :)

Fischerlaender

10+ Year Member



 
Msg#: 250 posted 10:01 pm on Apr 16, 2003 (gmt 0)

There is another reason for using mod_rewrite:
A URL which looks like
/article.php?cat=123&id=456
isn't very nice for human visitors, whereas
/article_123_456.htm
is easier to understand.

And of course you can even go one step further and use an URL like:
/marketing/456.htm
(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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved