At the company where I work, we're getting ready to design a new web site, and there's some disagreement about how to do clean URLs. Over the past year we've been making small improvements to our existing web site in anticipation of a large-scale redesign, which has involved the Poor Man's Clean URLs™.
For the new site, there is some talk about using mod_rewrite:
- The user requests
- mod_rewrite sends them to
- index.php sends them to the real page
I'm failing to see how all this rigamaroll is adding any value. The employee in favor of mod_rewrite is claiming that fewer directories somehow equates to easier maintenance.
None of our existing pages make use of variables in the query string. All the content is in the actual files themselves. We are planning to put some content in the database, like press releases and upcoming trade shows we will be attending, but the vast majority of pages will only be using PHP for including common HTML like header, footer, and navigation. I would definitely be up for using mod_rewrite for dynamic content like that.
Is there some big benefit I'm missing that we should be using mod_rewrite for everything? Are the Poor Man's Clean URLs™ sufficient for the non-database parts of our site?