Guest User

Untitled

a guest
Dec 16th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. # location / {
  2. # try_files $uri $uri/ /index.php?$query_string;
  3. # }
  4.  
  5. location = /sitemap.xml {
  6. rewrite ^(.*)$ /index.php?route=feed/google_sitemap break;
  7. }
  8.  
  9. location = /googlebase.xml {
  10. rewrite ^(.*)$ /index.php?route=feed/google_base break;
  11. }
  12.  
  13. location / {
  14. # This try_files directive is used to enable SEO-friendly URLs for OpenCart
  15. try_files $uri $uri/ @opencart;
  16. }
  17.  
  18. location @opencart {
  19. rewrite ^/(.+)$ /index.php?_route_=$1 last;
  20. }
Add Comment
Please, Sign In to add comment