Advertisement
Guest User

Untitled

a guest
May 25th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
  2.  
  3. # 2. In your opencart directory rename htaccess.txt to .htaccess.
  4.  
  5. # For any support issues please visit: http://www.opencart.com
  6.  
  7. Options +FollowSymlinks
  8.  
  9. # Prevent Directoy listing
  10. Options -Indexes
  11.  
  12. # Prevent Direct Access to files
  13. <FilesMatch "(?i)((\.tpl|.twig|\.ini|\.log|(?<!robots)\.txt))">
  14.  Require all denied
  15. ## For apache 2.2 and older, replace "Require all denied" with these two lines :
  16. # Order deny,allow
  17. # Deny from all
  18. </FilesMatch>
  19.  
  20. # SEO URL Settings
  21. RewriteEngine On
  22. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
  23.  
  24. RewriteBase /
  25. RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
  26. RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
  27. RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
  28. RewriteCond %{REQUEST_FILENAME} !-f
  29. RewriteCond %{REQUEST_FILENAME} !-d
  30. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  31. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement