Does anyone know how to remove the .html or .php extensions from appearing in the URL? My example would be like (before) http://www.testing/remove.html to (after) http://www.testing/remove
I searched Chris’s site and this forum, I could not find an answer, unless I overlooked it. I did not know if anyone out here was familiar with this or not? I researched the web, I know this requires coding in the .htaccess.txt file. However, some of the example codes I tried never worked for some reason.
One example code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}!-d
RewriteCond %{REQUEST_FILENAME}!-f
RewriteRule ^([^.]+).php$ $1 [L]
Two of my PHP books, do not even mention this?
Any help would be appreciated!
Sincerely,
Todd