L
L
Lici2017-05-11 16:37:37
htaccess
Lici, 2017-05-11 16:37:37

How to make a 301 redirect page with parameters?

Wordpress
Old URL /ru/yahty/?type=sailing+yacht
New URL /ru/category/sailing-yacht/
Trying to play with this:
RewriteCond %{QUERY_STRING} type=sailing+yacht
RewriteRule ^ru/yahty$ /sailing- yacht [R=301,L]
Similar to this How to make a 301 redirect from a strict address with a parameter to a new one without a parameter?
But doesn't work. What is the correct code for htaccess?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-05-11
@Lici

https://donatstudios.com/RewriteRule_Generator

R
romy4, 2017-05-11
@romy4

what does "doesn't work" mean?
possibly /ru/yahty/$
may need to add /ru/category/sailing-yacht

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question