Answer the question
In order to leave comments, you need to log in
How to set up a redirect using mod_rewrite?
Tell me how to register a redirect from
http://test.ru/boom
http://test.ru/purum
http://test.ru/pumpum
http://test.ru/bla
to test.ru/catalog
Answer the question
In order to leave comments, you need to log in
You need to put a file in the root directory of the site and name it ".htaccess", the dot at the beginning of the file name is not accidental, this is specifically so that the server does not give such files when accessing them.
The file should contain the following:
Redirect 301 /boom /catalog
Redirect 301 /purum /catalog
Redirect 301 /pumpum /catalog
Redirect 301 /bla /catalog
If there is already such a file in the root of the site, then you need to add the same lines to the end.
If the file already exists and after adding the lines it also does not work, then you can send the file itself, I can tell you what needs to be done with it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question