Forum Moderators: phranque
[{domainname}.com...]
To another valid URL in my site?
If so, how do I do that?
I tried the simple syntax (all in one line, of course):
redirect 301 /shop/index.php?main_page=product_free_shipping_infoReallySearchcPath=2ReallySearchproducts_id=28 [{domainname}.com...]But that doesn't work (I am still getting 404).
Other redirect statements (shorter) work fine. I suspect this has to do with the question marks in the URL?
Your help is appreciated.
[httpd.apache.org...]
Can you recommend a tutorial or a similar example that can help me get there faster?
Thanks.
Options +FollowSymLinks -MultiViews
RewriteEngine on
#
RewriteCond %{QUERY_STRING} ^main_page=product_free_shipping_infoReallySearchcPath=2ReallySearchproducts_id=28$
RewriteRule ^shop/index\.php$ http://www.example.com/shop/index.php?main_page=product_free_shipping_info&cPath=2&products_id=28 [R=301,L]