NYCPHP Meetup

NYPHP.org

[nycphp-talk] mod_rewrite -- what's the big deal?

Scott Mattocks scott at crisscott.com
Tue Oct 3 08:47:57 EDT 2006


Cliff Hirsch wrote:
> I'm confused by mod_rewrite
>  
> What is the point? What is the big deal?
>  
> Why is www.website.com/page/action/stuff/morestuff/
>  
> Better than
>  
> www.website.com/page.php?action=something&id=#&....
>  
>  
> What difference does it make? To me it mainly looks like a major
> headache making all the queries written in PHP play nicely with
> mod_rewrite.

The Googlebot likes version one much better. And it is always a good 
idea to make the Googlebot happy. It's also easier for users to read and 
understand so they can get back to a particular page more easily or 
understand what their bookmark says.

-- 
Scott Mattocks
Author of: Pro PHP-GTK
http://www.crisscott.com



More information about the talk mailing list