Friday, April 2, 2010

.htaccess : Internal Redirect .php files to .html files (SEO friendly)

Redirects all files that end in .html to be served from filename.php so it looks like all your pages are .html but really they are .php

RewriteRule ^(.*)\.html$ $1.php [R=301,L]

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home