Categories
How to do mass htaccess redirect?
Good afternoon How to make a mass redirect from links of the site.ru/url-adres/url type with the condition that if the url is "url" at the end, then it corrects to site.ru/url-adres/
Answer the question
In order to leave comments, you need to log in
RedirectMatch 301 ^/(.+)/url$ /$1/ Or RewriteRule ^(.+)/url$ /$1/ [R=301,L]
RedirectMatch 301 ^/(.+)/url$ /$1/
RewriteRule ^(.+)/url$ /$1/ [R=301,L]
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question