D
D
Denis2016-06-03 19:00:16
htaccess
Denis, 2016-06-03 19:00:16

Redirecting dynamic links, how to make sure that a new address does not have a dynamic ending added during a redirect?

Hello. Registered a redirect from a dynamic address to a new one

RewriteCond %{QUERY_STRING} ^pageid=78$ 
  RewriteRule ^old_url\.htm http://site.ru/category/new_url.html [L,R=301]

When redirecting, ?pageid=78 is added at the end of the url, it turns out like this site.ru/category/new_url.html?pageid=78 , how to make sure that this ending ?pageid=78 is not added?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2016-06-06
@kallifan

oddly enough you answered your own question with your own answer
.....pageid=78 ?
just remove the space between the question and finally openwork

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question