Join the community today
Become a Member

OpenCart OpenCart

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

Tags:
  1. Matt

    Matt Moderator Staff Member

    680
    314
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +433
    Local Time:
    10:23 AM
    1.7.1
    MariaDB 10
    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; }
     
    • Like Like x 2
  2. trexanhvn

    trexanhvn New Member

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