Having an issue where the URL rewrite is running but the server will not display the contents. My .htaccess file is
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /project\.php [NC]
RewriteCond %{QUERY_STRING} id=([0-9]+) [NC]
RewriteRule . project-%1.html? [R=301]
Thanks for your help!
EDIT: Sorry, here is some more info!
I want to rewrite
www.siteurl.co.uk/project.php?id=82
to
www.siteurl.co.uk/project-82.html
The code in the .htaccess rewrites the URL perfectly but the page does not display. I get a
404 The requested URL /project-82.html was not found on this server.
I hope that helps!
You only have one half of the solution, creating the pretty urls. What is missing is the other half, sending the pretty urls to an application for processing as below