AbanteCart Community

eCommerce construction => Installation and Configuration => Configuration => Topic started by: heng on June 24, 2017, 01:28:51 PM

Title: How to configure AbanteCart Cart's seo on nginx ubuntu server?
Post by: heng on June 24, 2017, 01:28:51 PM
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;
    }
}
Title: Re: How to configure AbanteCart Cart's seo on nginx ubuntu server?
Post by: abolabo on June 28, 2017, 04:51:49 AM
did you checked this config?
https://github.com/abantecart/abantecart-src/blob/master/public_html/nginx.conf.txt