Advertisement
GOODPower

Untitled

Jun 20th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  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|\.ini|\.log|(?<!robots)\.txt))">
  14. Order deny,allow
  15. Deny from all
  16. </FilesMatch>
  17.  
  18. # SEO URL Settings
  19. RewriteEngine On
  20. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
  21.  
  22. RewriteBase /
  23. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  24. RewriteRule ^yandex_market.xml$ index.php?route=feed/yandex_market [L]
  25. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  26. RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
  27. RewriteCond %{REQUEST_FILENAME} !-f
  28. RewriteCond %{REQUEST_FILENAME} !-d
  29. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  30. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  31. RewriteCond %{HTTPS} off [OR]
  32. RewriteCond %{HTTP_HOST} ^www\.
  33. RewriteRule (.*) https://***.ru/$1 [L,R=301]
  34.  
  35. ### Additional Settings that may need to be enabled for some servers
  36. ### Uncomment the commands by removing the # sign in front of it.
  37. ### 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.
  38.  
  39. # 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:
  40. # php_flag register_globals off
  41.  
  42. # 2. If your cart has magic quotes enabled, This may work to disable it:
  43. # php_flag magic_quotes_gpc Off
  44.  
  45. # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
  46. # php_value upload_max_filesize 999M
  47.  
  48. # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
  49. # php_value post_max_size 999M
  50.  
  51. # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
  52. # php_value max_execution_time 200
  53.  
  54. # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
  55. # php_value max_input_time 200
  56.  
  57. # 7. disable open_basedir limitations
  58. # php_admin_value open_basedir none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement