- Apache mod_rewrite Need to be Enabled
- Add this RewriteRule to .htaccess on Site Root
RewriteEngine On Options +FollowSymlinks RewriteRule ^(.*)\.html$ $1\.php [NC]
- The if you are on Localhost Restart Apache
Make a test.php file containing:
<?php phpinfo();Insert in your browser the URL:
<rootDomainURL>/test.htmlNow your Apache mod_rewrite should Rewrite your URL to Call the test.php file and so you should be able to See your PHP Installation Settings on screen.
Then you will be Able to Modify your URLs Adding the html Suffix Keeping untouched your PHP Site Files...