I am trying to use .htaccess to rewrite example.php to example.
The code I am using is:
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /example\.php\ HTTP/ [NC]
RewriteRule .+ http://www.example.com/example [R=301,QSA]
RewriteRule ^example/? /example.php [QSA,L]
The page redirects but shows a 404 - page not found error.
Is there something I am doing wrong? I only want to rewrite this one page and not any other pages within the site
Many Thanks
{}toolbar button. I've done it for you this time. Welcome to StackOverflow.