Hi,
I need to rewrite urls. Some are dynamic and others are static.
I write an .htacess file and I upload this file in the concert folder. But nothing works.
I would like to change dynamic urls like this one:
http://www.thesite.com/00_AN/03_Cata...p?ItemSelect=6
redirect to:
http://www.thesite.com/00_AN/03_Catalogue/product.php
and static pages like:
http://www.thesite.com/00_AN/03_Cata...d-product.html
redirect to:
http://www.thesite.com/00_AN/03_Cata...ew-product.php
.htaccess file is in /03_Catalogue/
Here are the rules that I write:
RewriteEngine on
RewriteCond %{QUERY_STRING} ^ItemSelect=6$
RewriteRule ^/catalogue_technical.php$
http://www.thesite.com/00_AN/03_Catalogue/product.php? [L,R=301]
RewriteCond %{QUERY_STRING} ^ItemSelect=12$
RewriteRule ^/catalogue_technical.php$
http://www.thesite.com/00_AN/03_Cata...w-product.php? [L,R=301]
redirect 301 /catalogue_technical.html
http://www.southlandboat.com/00_AN/0.../catalogue.php
redirect 301 /catalogue_technical-item.html
http://www.southlandboat.com/00_AN/0...logue/item.php
Nothing works. I do not know if I can write an .htaccess file with dynamic and static pages in the same file.
Are you able to tell me what I am doing wrong?
Thank You