V
V
Viktor Viktorov2018-03-12 15:44:27
htaccess
Viktor Viktorov, 2018-03-12 15:44:27

How to remove tail on redirect in htaccess?

I need to redirect from the site https://site.ru/serija-hook2/ to https://site.ru/po-serii/hook2
I do it with:

Redirect 301 /serija-hook2/ https://site.ru/po-serii/hook2

And I get a redirect with a strange tail at the output - https://site.ru/po-serii/hook2?_route_=serija-hook2/
I tried everything, the maximum that happened: https://site.ru/po-serii/ hook2? - this is if you put a question mark at the end of htaccess, but you need a link without a question mark at the output https://site.ru/po-serii/hook2
Help with advice, otherwise I can’t decide for 4 hours myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-03-13
@CoolHeart

Sorry for the toftology, but to kill the question you need to put the question at the end

Redirect 301 /serija-hook2/ https://site.ru/po-serii/hook2?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question