Author Topic: How to configure AbanteCart Cart's seo on nginx ubuntu server?  (Read 3992 times)

Offline heng

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
I'm fresh new with AbanteCart Cart now I'm really like that system design and architect which make me easy to use and I post this question because I'm not yet found a solution to configuration SEO on nginx.

Here is my configuration

server {
    listen 80;
    root ...../public_html;
    index index.php index.html;
    server_name akhura.com akhura.com;
#   access_log .....akhura_access.log;
    error_log  ...../errors.log;
    autoindex off;
    proxy_connect_timeout 100s;
    proxy_read_timeout 100s;
    location / {
        #try_files $uri $uri/ /index.php?$query_string;
       #try_files $uri $uri/ /index.php?$args;
        try_files $uri @abantecart_rules;
        #try_files $uri $uri/ /index.php?rt=$uri&$args;
    }
location @abantecart_rules {
        rewrite ^(.)\?$ /index.php?rt=$1&$args last;
}
  location = /robots.txt {
        allow all;
        log_not_found off;
        access_log off;
    }
 location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|\.php_ {
        deny all;

    }
  location ~ /\. {
        deny all;
        access_log off;
        log_not_found off;
    }
 location ~* ^(.*)\.(jpg|png|gif)$ {
   set $hidpi_uri $1@2x.png;
        if ($http_cookie !~ 'HTTP_IS_RETINA=1') {
          break;
        }
        try_files $hidpi_uri $uri =404;
    }
 location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
        expires max;
        log_not_found off;
    }
    location ~ /(system/logs|resources/download) {
      deny all;
      return 403;
    }
    location ~ \.php$ {
        try_files $uri = 404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:var/run/php/php7.0-fpm-saku.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod