Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm having some trouble with redirects and I haven't been able to get this to work. I want to make http://www.mysite.com/seasonal/christmas?p=15 redirect to http://www.mysite.com/holiday-decor/christmas.html.

I was wondering if someone could help me with the rewrite rule so the query string doesn't appear in the redirected URL. I'm using .htaccess with a Magento platform site.

share|improve this question
add comment

1 Answer

Try adding this to your .htaccess in the document root:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.)&?start=0(.)$
RewriteRule ^/?products.php$ /products.php?%1%2 [R=301,NE]

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.