Post by hxkurt » Wed Nov 16, 2022 6:52 pm

my hosting is nginx (Cloudpanel installed). I use Opencart Version 4.0.1.1
when i active seo url in admin panel. Opencart seo url does not work. i modified nginx conf file but it does not work. I try alot of nginx modification but it does not work.
this is error screen : https://prnt.sc/jICcchXFoitt i think seo url values comes empty or not true
this is my nginx.conf file and this file is working good at opencart Version 3.0.3.8 version in same hosting

Code: Select all

server {
  listen 80;
  listen [::]:80;
  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name xxxxxxxxx.com;
  return 301 https://www.xxxxxxxxx.com$request_uri;
}

server {
  listen 80;
  listen [::]:80;
  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name www.xxxxxxxxx.com www1.xxxxxxxxx.com;
  {{root}}

  {{nginx_access_log}}
  {{nginx_error_log}}

  if ($scheme != "https") {
    rewrite ^ https://$host$uri permanent;
  }
  
rewrite ^/mail$ https://passport.yandex.com.tr/auth/welcome?retpath=https://mail.yandex.com.tr/&login=info@xxxxxxxxx.com permanent;

  location ~ /.well-known {
    auth_basic off;
    allow all;
  }
  
  rewrite ^/sitemap.xml$ /index.php?route=feed/google_sitemap last;
    rewrite ^/googlebase.xml$ /index.php?route=feed/google_base last;
    rewrite ^/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;
    }

  {{settings}}

  try_files $uri $uri/ /index.php?$args;
  index index.php index.html;

  location ~ \.php$ {
    include fastcgi_params;
    fastcgi_intercept_errors on;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    
    try_files $uri =404;
    fastcgi_read_timeout 3600;
    fastcgi_send_timeout 3600;
    fastcgi_param HTTPS $fastcgi_https;
    fastcgi_pass 127.0.0.1:{{php_fpm_port}};
    fastcgi_param PHP_VALUE "{{php_settings}}";
  }

  location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
    add_header Access-Control-Allow-Origin "*";
    expires max;
    access_log off;
  }

  if (-f $request_filename) {
    break;
  }
}

Newbie

Posts

Joined
Sun Nov 13, 2022 5:13 am

Post by hxkurt » Tue Nov 22, 2022 5:09 am


Newbie

Posts

Joined
Sun Nov 13, 2022 5:13 am
Who is online

Users browsing this forum: No registered users and 8 guests