K
K
kgweber2015-02-10 18:59:55
Apache HTTP Server
kgweber, 2015-02-10 18:59:55

301 redirect with signs =?, & in url?

You need to redirect a number of pages to new addresses.
there are old urls, you need to redirect them to new urls
/index.php?r=builder => site.ru/builder/index
/index.php?r=realty/catalog&type=living => site.ru/flat/index
/index. php?r=realty/catalog => site.ru/object/index
tried a bunch of options, it doesn't help.
1st option. didn't work.
Redirect 301 /index.php?r=builder site.ru/builder/index
Redirect 301 /index.php?r=realty/catalog&type=living site.ru/flat/index
2nd option. rewriterule didn't work
either ^index.php?r=realty/catalog&type=living(.*)$ site.ru/flat/index$1 [r=301,nc]
3rd option. didn't work either
RewriteCond %{QUERY_STRING} ^/index.php?r=builder$
RewriteRule ^(.*)$ site.ru/builder/index [R=301,L]
What options can you suggest? I hope for your support.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kgweber, 2015-02-11
@kgweber

Found a solution, helped https://donatstudios.com/RewriteRule_Generator

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question