Answer the question
In order to leave comments, you need to log in
How to remove "tail" when redirecting to .htaccess?
Good afternoon, ladies and gentlemen!
I have the following line in htaccess: RewriteRule ^forum(.+)$ /price.html [R=301,L]
When redirecting to the url of the page, after /price.html, a tail is attached:
> /forum/users/?PAGEN_1=10 > /price.html?PAGEN_1=10
How to remove this tail so that was it just /price.html?
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} PAGEN_1=10
RewriteRule ^forum(.+)$ /price.html? [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question