Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by htaccess on June Wed 29th 11:11 AM - Never Expires - Views: 2167

  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. Options +FollowSymlinks
  7.  
  8. # Prevent Directoy listing
  9. Options All -Indexes
  10.  
  11. # Prevent Direct Access to files
  12. <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
  13.  Order deny,allow
  14.  Deny from all
  15. </FilesMatch>
  16.  
  17. # SEO URL Settings
  18. RewriteEngine On
  19. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
  20.  
  21. RewriteBase /
  22. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  23. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  24. RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
  25. RewriteCond %{REQUEST_FILENAME} !-f
  26. RewriteCond %{REQUEST_FILENAME} !-d
  27. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  28. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  29. #RewriteRule ^(.*)\   index.php?p=$1 [L]
  30. ### Additional Settings that may need to be enabled for some servers
  31. ### Uncomment the commands by removing the # sign in front of it.
  32. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
  33.  
  34. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
  35.                                                                                                                                     1,9           Top
Language:
To highlight particular lines, prefix each line with @@




© 2017  admin@YSblue (Implemented and Adapted) - Powered by PASTE 1.0