Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Помогите разобраться с редиректом


Gazcut
 Share

Recommended Posts

Добрый день!

Сайт переехал на новый домен.

вылезли страницы с ошибкой 404

все красиво правиться редиректом 301,например:

RewriteCond %{QUERY_STRING} ^_route_=stekla_tiss/stekla.html$
RewriteRule ^(.*)$ https://pz.ua/sredstva_individualnoj_zawity/steklo-zashchitnoe/steklo/? [R=301,L]

но есть ряд ошибок

https://pz.ua/news/?news_id=11

https://pz.ua/news/?news_id=13

и т.д. 37 шт.

на которых редирект не сработает
RewriteCond %{QUERY_STRING} ^_route_=news/?news_id=11$
RewriteRule ^(.*)$ https://pz.ua/all-news/? [R=301,L]   

 

хотя данный редирект работает

RewriteCond %{QUERY_STRING} ^_route_=news/$
RewriteRule ^(.*)$ https://pz.ua/all-news/? [R=301,L] 

Помогите разобраться и побороть. 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.