I have read many threads that talk about the benefits of making pages appear static using mod_rewrite, both for SEO and security. I understand the benefit of rewriting URLs to be more friendly so that instead of long query strings they look more like a folder structure. However, is there any benefit to changing the extension?
My site is built using PHP for database and other interactive content. As a result, all pages end in .php. None of the pages in question have query strings at the end. Is there any reason to set up a rewrite so that the pages will have the "traditional" .html extension instead of .php?
The two possibilities that occur to me are security (in case a vulnerability is found in PHP, I'm hiding the fact that my site uses PHP by changing the extension - and yes, I also removed the other tell-tale headers) or SE optimization (my site might have some penalty because the extension shows them to be obviously dynamic pages). Are these valid reasons to change the extension, or are there others? I look forward to hearing your opinions on this.
Submit Your Article
Forum Rules

Reply With Quote
