yesamarcos

htaccess

Dec 12th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 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 "\.(tpl|ini|log)">
  14. Order deny,allow
  15. Deny from all
  16. </FilesMatch>
  17.  
  18. # SEO URL Settings
  19. RewriteEngine On
  20. RewriteBase /
  21. RewriteCond %{REQUEST_FILENAME} !-f
  22. RewriteCond %{REQUEST_FILENAME} !-d
  23. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  24.  
  25.  
  26. ### Additional Settings that may need to be enabled for some servers
  27. ### Uncomment the commands by removing the # sign in front of it.
  28. ### 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.
  29.  
  30. # 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:
  31. # php_flag register_globals off
  32.  
  33. # 2. If your cart has magic quotes enabled, This may work to disable it:
  34. # php_flag magic_quotes_gpc Off
  35.  
  36. # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
  37. # php_value upload_max_filesize 999M
  38.  
  39. # 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
  40. # php_value post_max_size 999M
  41.  
  42. # 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
  43. # php_value max_execution_time 200
  44.  
  45. # 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
  46. # php_value max_input_time 200
Advertisement
Add Comment
Please, Sign In to add comment