Redirect .html file to .php

RewriteEngine on RewriteRule ^/?([^/]*).html index.php?page=$1 OR RewriteRule ^/?([a-zA-Z0-9-]+).html$ index.php?page=$1 #no slashes @ end OR RewriteRule ^/?([a-zA-Z0-9-]+).html/$ index.php?page=$1 #slash after .html. #Normally this doesnot occur in websites. This conversion is done…

Continue Reading
Close Menu