I have an url with the following format: domain/product.php?name=product a
Now I need to rewrite this to:
domain/product a(including the space in the word) like:
http://www.directline-holidays.co.uk/Costa Blanca
How do I do this? The closest result I got so far is the following:
domain/p/product-a
With the following code in .htaccess
RewriteEngine On
RewriteRule ^p/([^/]*)/$ destination.php?name=$1
I could not even use the name without the "-", I need the product name just as it is in the database. Please help. Many thanks in advance.