K
K
keslo2014-08-29 14:32:42
css
keslo, 2014-08-29 14:32:42

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

1 answer(s)
S
SixFingers, 2014-08-30
@SixFingers

RewriteCond %{QUERY_STRING} PAGEN_1=10
RewriteRule ^forum(.+)$ /price.html? [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question