batfan
5/1/2014 - 11:24 PM

Redirect Old/Missing Files to their New Versions

Redirect Old/Missing Files to their New Versions

# This rule redirects any HTML files that are missing
# to the PHP version of that file
##########################################################

RewriteCond %{REQUEST_URI} \.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)\.html /$1\.php [R=301,L]