opencart.conf 374 B

12345678910111213
  1. location = /sitemap.xml {
  2. rewrite ^(.*)$ /index.php?route=feed/google_sitemap break;
  3. }
  4. location = /googlebase.xml {
  5. rewrite ^(.*)$ /index.php?route=feed/google_base break;
  6. }
  7. location / {
  8. # This try_files directive is used to enable SEO-friendly URLs for OpenCart
  9. try_files $uri $uri/ @opencart;
  10. }
  11. location @opencart {
  12. rewrite ^/(.+)$ /index.php?_route_=$1 last;
  13. }