Redirect all .php requests to .html using .htaccess – Apache
The following code works to hide .php and replace it with .html RewriteEngine ON RewriteCond %{REQUEST_URI} ^/([^/]*)/([^.]*).html/?$ [NC] RewriteRule ^(.*)$ %1/%2/index.php [L] I would like to redirect all .php requests to .html. All .php files are inside a sub directory…