F
F
Forspeed2015-11-29 15:59:20
htaccess
Forspeed, 2015-11-29 15:59:20

How to write a 301 redirect correctly?

Friends, welcome.
Help me build the right redirect
The bottom line
is there is a search page that crashes with a 404 error
mysite.com/aaa.html?keyword=625852&search=true&vie...
you need to redirect to
mysite.com/component/virtuemart/search.html?keywor...
how replace aaa.html? at component/virtuemart/search.html?
Tried
RedirectMatch 301 ^(.*)/aaa.html?keyword$ ^(.*)/component/virtuemart/search.html?keyword$
doesn't work :(
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question