Lone Ice2018-09-25 15:33:03
Lone Ice, 2018-09-25 15:33:03

301 redirect, how to remove GET after redirect?

I am not strong in redirects, I did it according to the examples from the articles. So, I'm doing a 301 redirect from the old site (to Kohana) to the new one. Registered:

Redirect 301 /restoran/list/11 https://www.site.com/catalog/restorany/

After the transition, the link is https://www.site.com/catalog/restorany/?kohana_uri...
How can I get rid of the GET parameter after the redirect?
Tried like this (after a lot of searching):
RewriteRule ^restoran/list/11$ https://www.site.com/catalog/restorany/ [L,R=301]

The tester shows that the redirect is correct, but it does not work on the site (no redirect at all).
There will be about 400 such redirects, so specific numbers are entered

Answer the question

In order to leave comments, you need to log in

1 answer(s)
dodo512, 2018-09-25

RewriteRule ^restoran/list/11$ https://www.site.com/catalog/restorany/ [L,R=301]

Redirects should be placed above CNC rulesRewriteRule ^(.*)$ index.php?kohana_uri=$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question