Q
Q
qvaro2017-10-10 09:57:05
htaccess
qvaro, 2017-10-10 09:57:05

301 redirect when changing CMS?

Good afternoon.
Please tell me how to make a 301 redirect if the url contains /ttt/
The problem is that the urls are different
Example:
the url is site.ru/there are numbers that change/ttt/here is the name of the category or product, it also changes constantly
We changed cms, and now you need to set up 301 for all pages, since there are a lot of 404 now.
How to make a 301 so that a url that has /ttt/ redirects to the main page

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2017-10-10
@Eridani

RewriteRule ^(.*)ttt(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

Q
qvaro, 2017-10-10
@qvaro

does not help, 404 error
no more ways?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question