Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Переадресация 302, вместо 301 со страницы index.php?route=common/home


Recommended Posts

Проверил сайт программой Screaming Frog. Нашлась ссылка, у которых переадресация 302.

Переадресовывает с https://domostroy72.ru/index.php?route=common/home на https://domostroy72.ru/ 

Address	https://domostroy72.ru/index.php?route=common/home
URL Encoded Address	https://domostroy72.ru/index.php?route=common/home
Content Type	text/html; charset=UTF-8
Status Code	302
Status	Found
HTTP Version	1.1
Indexability	Non-Indexable
Indexability Status	Redirected
Redirect URL	https://domostroy72.ru/
Redirect Type	HTTP Redirect

Скажите пожалуйси, разве тут не должна быть 301 переадресация? Что в этом случае сгделать?

Link to comment
Share on other sites


2 часа назад, alinalessioYandex сказал:

Проверил сайт программой Screaming Frog. Нашлась ссылка, у которых переадресация 302.

Переадресовывает с https://domostroy72.ru/index.php?route=common/home на https://domostroy72.ru/ 

Address	https://domostroy72.ru/index.php?route=common/home
URL Encoded Address	https://domostroy72.ru/index.php?route=common/home
Content Type	text/html; charset=UTF-8
Status Code	302
Status	Found
HTTP Version	1.1
Indexability	Non-Indexable
Indexability Status	Redirected
Redirect URL	https://domostroy72.ru/
Redirect Type	HTTP Redirect

Скажите пожалуйси, разве тут не должна быть 301 переадресация? Что в этом случае сгделать?

Вангую, что это какая то левая спотому чторка, липотому что листый опенкарт, липотому что вы не используете сеопро.
Хотите исправить

 

Ходите сюда:

 

https://github.com/ocStore/ocStore/blob/ocStore-3-0-3-7/upload/system/library/response.php

 

И поменяйте 302 на 301

 

 

Link to comment
Share on other sites


10 минут назад, ****** сказал:

 

Хз - раз 20 правил, все рилииет.

 

например игдем в список желаний, получаем 301 редирект на логин

логинимся, тыкаем в список желаний попадаем на логин

Link to comment
Share on other sites

13 часов назад, ****** сказал:

Вангую, что это какая то левая спотому чторка, липотому что листый опенкарт, липотому что вы не используете сеопро.
Хотите исправить

 

Ходите сюда:

 

https://github.com/ocStore/ocStore/blob/ocStore-3-0-3-7/upload/system/library/response.php

 

И поменяйте 302 на 301

 

 

Спотому чторка ocStore 2.1.0.2.1

Сео Про включено.

Link to comment
Share on other sites


12 часов назад, spectre сказал:

 

это плохая игдея! будут кешироваться редиректы на логин к примеру

Т.е. я правильно понимаю, что на с этот страницы и должна быть 302 переадресация? Згдесь ошибки нет?

Link to comment
Share on other sites


В 07.02.2022 в 18:45, spectre сказал:

 

например игдем в список желаний, получаем 301 редирект на логин

логинимся, тыкаем в список желаний попадаем на логин

 

 

        add_header Last-Modified $date_gmt;
        add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
        if_modified_since off;
        expires off;
        etag off;

 

 

https://www.digitalocean.com/community/questions/browser-caching-with-nginx-s-issue

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.