I am trying to add the page title into the URL. Just like this site does! Basically I want to rewrite the url from
www.siteurl.co.uk/project-82
to
www.siteurl.co.uk/project/the-title-of-the-project
The string that is passed from the php to html file is {PROJECT_TITLE}. How would I add this in the .htaccess file? Thanks guys!
EDIT:
This is my .htaccess file
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /project\.php [NC]
RewriteCond %{QUERY_STRING} id=([0-9]+) [NC]
RewriteRule . project-%1? [R=301]