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

Recommended Posts

Страница 404 для OpenCart


Страница 404 для OpenCart


Данный мод позволяет Вам создать кастомную страницу ошибки 404, предлагая пользователям список категорий, по которым можно перейти, вместо страницы по умолчанию.

 

Внимание!
Модуль не перекрывает страницу пустой корзины! А только те страницы, для которых действительно необходимо отобразить ошибку 404.

 

СМОТРИТЕ ТАКЖЕ ДРУГИЕ МОИ SEO-МОДУЛИ

 


  • Добавил
  • Добавлено
    27.07.2017
  • Категория
  • Системные требования
  • Метод активации
    Без активации
  • Ioncube Loader
    Нет
  • ocStore
    3.0
    2.3.0.2.4
    2.3
    2.1
  • OpenCart.Pro, ocShop
  • Обращение к серверу разработчика
    Нет

 

  • +1 1
Link to comment
Share on other sites

У меня не заработал (( сделал все по инструкции, страница 404 осталась прежней

Link to comment
Share on other sites


В 29.07.2017 в 11:29, Fimo сказал:

У меня не заработал (( сделал все по инструкции, страница 404 осталась прежней

Аналогично. 

ocStore 2.1.0.2

UniShop v2.2.0.2

 

Link to comment
Share on other sites


  • 3 weeks later...
  • 3 weeks later...
В 01.08.2017 в 23:29, baxabit сказал:

Аналогично. 

ocStore 2.1.0.2

UniShop v2.2.0.2

 

Все работает

ocStore 2.1.0.2

UniShop v2.2.0.6.

Инструкцию читали?

Цитата

Если Вы все еще видите обыную страницу 404 опенкарт, необходимо скопировать папку template из архива 404-*.ocmod.zip в папку с названием 
вашей темы через FTP.

 

Link to comment
Share on other sites


  • 3 months later...
  • 1 month later...

Все установилось и работает, картинку поставила свою. Но вместо категорий показывает вот такое:

 

Ознакомьтесь, пожалуйста, с категориями сайта:

Можно это как-то исправить? Opencart 2.2

Edited by jellochka
Link to comment
Share on other sites


  • 1 month later...
  • 2 weeks later...
  • 2 months later...
  • 2 weeks later...
  • 5 weeks later...

Установил Версия ocStore 2.3.0.2.3 ... после установки для версии 2,3 - выдает белый экран, для версии 1,6 ... все в порядке, но код ответа 200.

Поможете?

Link to comment
Share on other sites


  • 2 weeks later...

Приветствую не подскажете в чем может быть причина установил модуль Оксто 2.3 шаблон Унишоп все отображается кроме предлагаемых категорий для перехода https://prnt.sc/kmrkqh

Как решить? Спасибо заранее.

Link to comment
Share on other sites


  • 1 month later...

где этот мод настраивается? отдельно нужно создавать макет или он использует по умолчанию?

инфы в описании вообще никакой...

Link to comment
Share on other sites


  • 1 month later...
3 часа назад, Anton52 сказал:

В менеджере дополнений висит, но не могу найти где он настраивается, помогите тупому, пожалуйста!

он не настраивается

Link to comment
Share on other sites


  • 1 month later...

Подскажите пожалуйста что исправить в конфиге NGINX + FastCGI (на VPS-сервере два сайта, на одном из них - магазин Opencart 2.3.2)

на другом сайте/домене который будет установлен позже будет тоже свой сертификат ssl

 

Также был установлен https FIX от Маркимакс

 

Ситуация такова, насколько я помню, то:

 

До установки ssl-сертификата и https протокола модификатор 404й страницы работал нормально.
Потом как-то не заметил что он уже не работает.

 

При этом срабатывает правильно https://zabeznal.com/404

 

Но если скармливать не правильную ранее проиндексированную Гуглом ссылку на товар

- то эта "персональная" страница уже не открывается, а получаем просто обычную 404-ю ошибку

 

Мой конфиг NGINX WWW-домена сайта с магазином на OC 2.3.0.2

(не подскажите что в нем нужно исправить для работы переадресации на "собственную" 404ю)


<spoiler>

server {
    server_name сайт.com *.сайт.com www.сайт.com;
        include /etc/nginx/vhosts-includes/*.conf;
        return 301 https://$server_name$request_uri;
    charset UTF-8;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-resources/сайт.com/*.conf;
    error_log /var/www/httpd-logs/сайт.com.error.log crit;
    
    keepalive_timeout  60;
    keepalive_requests 500;
    client_body_timeout 90;
    reset_timedout_connection on;
    
    ssi on;
    return 301 https://$host:443$request_uri;
    set $root_path /var/www/www-root/data/www;
        set $subdomain сайт.com;
    if ($host ~* ^((.*).сайт.com)$) {
        set $subdomain $1;
    }
    root $root_path/$subdomain;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    location / {
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
            expires 12h;
        }
    }
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f емейл@сайт.com";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }

    access_log off;
    error_log /var/www/httpd-logs/сайт.com.error.log crit;
    listen IP-address:80;
}

server {
    server_name сайт.com *.сайт.com www.сайт.com;
    ssl_certificate "/var/www/httpd-cert/www-root/сайт.com.crtca";
    ssl_certificate_key "/var/www/httpd-cert/www-root/сайт.com.key";
    ssl_ciphers EECDH:+AES256:-3DES:RSA+AES:!NULL:!RC4;
        ssl_prefer_server_ciphers on;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    charset UTF-8;
    index index.php index.html;
    disable_symlinks if_not_owner from=$root_path;
    include /etc/nginx/vhosts-includes/*.conf;
    #include /etc/nginx/vhosts-resources/сайт.com/*.conf;
    error_log /var/www/httpd-logs/сайт.com.error.log crit;
    
    keepalive_timeout  60;
    keepalive_requests 500;
    client_body_timeout 90;
    reset_timedout_connection on;
    
    ssi on;
    set $root_path /var/www/www-root/data/www;
        set $subdomain сайт.com;
    if ($host ~* ^((.*).сайт.com)$) {
        set $subdomain $1;
    }
    root $root_path/$subdomain;
    gzip on;
    gzip_comp_level 5;
    gzip_disable "msie6";
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;

    location / {
    rewrite ^/sitemap.xml$ /index.php?route=feed/google_sitemap last;
    rewrite ^/googlebase.xml$ /index.php?route=feed/google_base last;
    rewrite ^/system/download/(.*) /index.php?route=error/not_found last;
    if (!-f $request_filename){
    set $rule_3 1$rule_3;
    }
    if (!-d $request_filename){
    set $rule_3 2$rule_3;
    }
    if ($uri !~ ".*.(ico|gif|jpg|jpeg|png|js|css)"){
    set $rule_3 3$rule_3;
    }
    if ($rule_3 = "321"){
    rewrite ^/([^?]*) /index.php?_route_=$1 last;
    }
        location ~ [^/]\.ph(p\d*|tml)$ {
            try_files /does_not_exists @php;
        }
        location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
            expires 12h;
        }
    }

    location ~ .php$ {

    fastcgi_index index.php;
    fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f емейл@сайт.com";
    fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
    fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
    try_files $uri =404;

    include fastcgi_params;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;
    fastcgi_intercept_errors on;
    fastcgi_ignore_client_abort off;
    fastcgi_connect_timeout 90;
    fastcgi_send_timeout 240;
    fastcgi_read_timeout 240;
    fastcgi_buffer_size 512k;
    fastcgi_buffers 8 256k;
    fastcgi_busy_buffers_size 512k;
    fastcgi_temp_file_write_size 512k;
    }
    add_header Strict-Transport-Security "max-age=31536000;";
    ssl_dhparam /etc/ssl/certs/dhparam4096.pem;
    include /etc/nginx/vhosts-resources/сайт.com/*.conf;
    location @php {
        fastcgi_index index.php;
        fastcgi_param PHP_ADMIN_VALUE "sendmail_path = /usr/sbin/sendmail -t -i -f емейл@сайт.com";
        fastcgi_pass unix:/var/www/php-fpm/www-root.sock;
        fastcgi_split_path_info ^((?U).+\.ph(?:p\d*|tml))(/?.+)$;
        try_files $uri =404;
        include fastcgi_params;
    }

    access_log off;
    error_log /var/www/httpd-logs/сайт.com.error.log crit;
    listen IP-address:443 ssl;
}

</spoiler>

 

P.S. - не могу засунуть простыню под спойлер :(

Edited by VadimOd
try spoiler
Link to comment
Share on other sites


  • 4 weeks later...
  • 2 weeks later...

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.