Learn about Centmin Mod LEMP Stack today
Register Now

OpenCart Opencart Seo

Discussion in 'Ecommerce / Shopping cart usage' started by Shaiffulnizam Mohamad, Sep 21, 2016.

Tags:
  1. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    10:22 AM
    1.7.0
    5.5
    Hi, for those who are looking for Opencat SEO

    Code:
    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;
        }
    Insert it under.. / between

    Code:
    location / {
    
    }
    I have use this on my website Apasaja.MY - Harga Muroh Sokmo

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,808
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,710
    Local Time:
    12:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks @Shaiffulnizam Mohamad for sharing a much needed OpenCart configuration for folks that are looking :D
     
  3. Shaiffulnizam Mohamad

    Shaiffulnizam Mohamad New Member

    29
    8
    3
    Jun 6, 2014
    Ratings:
    +9
    Local Time:
    10:22 AM
    1.7.0
    5.5
    No problem eva, because I'm using it too..
     
  4. cloud9

    cloud9 Premium Member Premium Member

    431
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    2:22 AM
    1.25.3
    10.6.x