Hello,
I am currently working on a new webshop at which i want to rewrite a dynamic URL.
Currently the UL looks like this:
http://www.mysite.nl/product.php?catego ... uper%20hat
I want to make it look like this:
http://www.mysite.nl/hat/red-hat/super-hat/
However, I cannot get this to work!
I currently have this code running which always makes sure the URL starts with "http://www."
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mysite\.nl$ [NC]
RewriteRule ^(.*)$ http://www.mysite.nl/$1 [R=301,L]
I want to use this code to rewrite the URL:
RewriteRule http://www.mysite.nl/(.*)/(.*)/(.*)/ product.php?categorie=$1&subcategorie=$2&slug=$3
So the .htaccess file looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.mysite\.nl$ [NC]
RewriteRule ^(.*)$ http://www.mysite.nl/$1 [R=301,L]
RewriteRule http://www.mysite.nl/(.*)/(.*)/(.*)/ product.php?categorie=$1&subcategorie=$2&slug=$3
However, this doesn't seem to work. Can anybody help me?