OC 1.5.x Не могу вывести ошибку 404.

Тема в разделе "Общие вопросы", создана пользователем lexa.22rus, 27 июл 2015.

  1. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    При переходе на адрес http://site.ru/blablabla, тоесть если написать какой-нибудь бред после слэша, не выводится ошибка 404, а просто пишет, что страница не найдена. Без оформления, просто на белом фоне.

    Подскажите, может надо что то в настройках включить или .htaccess поправить. На сервере mod_rewrite включен.
     
  2. Romans

    Romans Administrator Команда форума

    Сообщения:
    1.434
    Симпатии:
    780
    Версия движка?. Адрес сайта?.
     
  3. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    Версия v1.5.6.1 сайт на локальном сервере.
     
  4. Romans

    Romans Administrator Команда форума

    Сообщения:
    1.434
    Симпатии:
    780
    Проблемы локального сервера. На опенсервер все хорошо работает.
     
  5. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    Закидывал на хостинг. Там тоже самое
     
  6. Ravilr

    Ravilr Специалист

    Сообщения:
    3.863
    Симпатии:
    1.059
    может с htaccess игрались?? Попробуйте его удалить. Отключить ЧПУ и проверить еще раз.
    Может модуль какой лишний? Пустую установку пробовали сделать?
     
  7. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    сейчас попробую.



    вот код htaccess:
    Код:
    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
    
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
    
    # For any support issues please visit: [URL]http://www.opencart.com[/URL]
    
    Options +FollowSymlinks
    
    # Prevent Directoy listing
    Options -Indexes
    
    # Prevent Direct Access to files
    <FilesMatch "\.(tpl|ini|log)">
    Order deny,allow
    Deny from all
    </FilesMatch>
    
    # 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=feed/google_sitemap [L]
    RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
    RewriteRule ^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]
    
    ### Additional Settings that may need to be enabled for some servers
    ### Uncomment the commands by removing the # sign in front of it.
    ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
    
    # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
    # php_flag register_globals off
    
    # 2. If your cart has magic quotes enabled, This may work to disable it:
    # php_flag magic_quotes_gpc Off
    
    # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
    # php_value upload_max_filesize 999M
    
    # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value post_max_size 999M
    
    # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_execution_time 200
    
    # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
    # php_value max_input_time 200
    
    # 7. disable open_basedir limitations
    # php_admin_value open_basedir none
     
    Последнее редактирование модератором: 28 июл 2015
  8. Ravilr

    Ravilr Специалист

    Сообщения:
    3.863
    Симпатии:
    1.059
    . прочитайте как надо вставлять код в тему и отредактируйте

    И что вы мне скажите? Чтобы я сидел и сравнивал?? Скажите сразу что меняли, а что нет...
    Или вам лень сравнить с оригиналом?? :(

    Да и более важно не сам файл.. а то что я написал.
     
  9. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    В файле ничего не менял.

    Сейчас установил еще раз opencart.

    Перешел на http://site.ru/blablabla и все тоже самое.
     
  10. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    Я разобрался. Спасибо!
     
  11. lexa.22rus

    lexa.22rus Пользователь

    Сообщения:
    68
    Симпатии:
    1
    Сейчас почитал на форуме, не заметил, что там расширение txt стоит. Убрал и все норм))