Join the community today
Register Now

OpenCart OpenCart

Discussion in 'Ecommerce / Shopping cart usage' started by Matt, May 30, 2014.

Tags:
  1. Matt

    Matt Well-Known Member

    929
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    12:02 PM
    1.5.15
    MariaDB 10.2
    Again, from my old OpenCart store, this is what I did to get it working with Friendly URLS


    Code:
    location /shop/ {
      try_files $uri @opencart;
      }
    
      location @opencart { rewrite ^/shop/(.+)$ /shop/index.php?_route_=$1 last; }
      location ~ /\.ht { deny all; }
      location ~* (\.(tpl|ini))$ { deny all; }
      if (!-e $request_filename) { rewrite ^/shop/(.*)$ /shop/index.php?_route_=$1 last; }
     
  2. trexanhvn

    trexanhvn New Member

    6
    1
    3
    Oct 18, 2014
    Ratings:
    +1
    Local Time:
    7:02 PM
    I used your code but it don't working.