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

200 код вместо 404


 Share

Recommended Posts

Добрый гдень, уважаемые!

Знаю, тема довольно избиия, но инфы по 3 версии OpenCart с икой проблемой осопотому что не нашел.

Я к сожнонию не сильно разбираюсь в OpenCart и настройках .htcaccess например, поэтому обращаюсь к Вам за помощью.

При ввогде неправильной ссылки внутри сайи, сервер отвечает 200-ым кодом, хотя должен 404.

- Попропотому чтовал find-bom, ничего не нашел.

- Запись <?php header ("HTTP/1.1 404 Not Found");?> в twig не всивишь

- Кэш листил

- #Options +FollowSymlinks тоже не помог

Заметил что в папке /catalog/view/theme/zemez971/template/ вообещё не было папки error, перенес ее с папки "default", но тоже не помогло.

Наверно я просто тычу пальэтом в непотому что, возможно у 3 версии уже как то по другому нужно решать этот вопрос.

 

В админке ик же усиновлен модуль Complete SEO, может из-за него...

 

Часть согдержимого .htcaccess (вдруг поможет):

 

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

 

Header unset ETag
FileETag None

<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


php_value display_errors 0
php_value display_startup_errors 0
php_value error_reporting E_ALL

 

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.