.htaccess mod_rewrite help

Status
Not open for further replies.


Why is it that you want to do this?
There is no benefit do doing so that I can imagine.

That said:
Code:
RedirectMatch 301 (.*)\.php$ http://www.example.com$1.html
to have it 301 from .php to html

or
Code:
[/FONT]RemoveHandler .html .htm[FONT=monospace]
[/FONT]AddType application/x-httpd-php .php .htm .html
to have it parse .htm and .html files as PHP
 
The reason I'm asking is because if a site has been done as a static site and then needs to be dynamic using php, and some of the pages are already indexed for SEO, the SERP's links won't be broken.
 
Status
Not open for further replies.