Advertisement
Guest User

Untitled

a guest
Jul 11th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. # DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:uGaRud
  2. ErrorDocument 403 /403.html
  3. # DO NOT REMOVE THIS LINE AND THE LINES ABOVE uGaRud:ERRORPAGEID
  4.  
  5. AddDefaultCharset utf-8
  6.  
  7. # DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:uhebuQ
  8. ErrorDocument 404 /404.html
  9.  
  10.  
  11. ExpiresActive On
  12. ExpiresDefault A0
  13.  
  14. <FilesMatch "\.(gif|jpg|jpeg|png)$">
  15. ExpiresDefault A604800
  16. Header append Cache-Control "public"
  17. </FilesMatch>
  18.  
  19.  
  20. <FilesMatch "\.(js|css)$">
  21. ExpiresDefault A604800
  22. Header append Cache-Control "proxy-revalidate"
  23. SetOutputFilter DEFLATE
  24. </FilesMatch>
  25.  
  26.  
  27. <FilesMatch "\.(php)$">
  28. ExpiresActive Off
  29. Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
  30. Header set Pragma "no-cache"
  31. </FilesMatch>
  32.  
  33. <IfModule mod_expires.c>
  34. ExpiresActive On
  35. ExpiresByType application/javascript "access plus 7 days"
  36. ExpiresByType text/javascript "access plus 7 days"
  37. ExpiresByType text/css "access plus 7 days"
  38. ExpiresByType image/gif "access plus 7 days"
  39. ExpiresByType image/jpeg "access plus 7 days"
  40. ExpiresByType image/png "access plus 7 days"
  41. </IfModule>
  42.  
  43. Options -FollowSymlinks
  44. #ptions +SymLinksIfOwnerMatch
  45.  
  46.  
  47. # Prevent Directoy listing
  48. Options -Indexes
  49.  
  50. # Prevent Direct Access to files
  51. <FilesMatch "\.(tpl|ini|log)">
  52. Order deny,allow
  53. Deny from all
  54. </FilesMatch>
  55.  
  56. # SEO URL Settings
  57. RewriteEngine On
  58. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
  59.  
  60. RewriteBase /
  61. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  62. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  63. RewriteCond %{REQUEST_FILENAME} !-f
  64. RewriteCond %{REQUEST_FILENAME} !-d
  65. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  66. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  67.  
  68. ### Additional Settings that may need to be enabled for some servers
  69. ### Uncomment the commands by removing the # sign in front of it.
  70. ### 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.
  71.  
  72. # 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:
  73. # php_flag register_globals off
  74.  
  75. # 2. If your cart has magic quotes enabled, This may work to disable it:
  76. # php_flag magic_quotes_gpc Off
  77.  
  78. # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
  79. # php_value upload_max_filesize 999M
  80.  
  81. # 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
  82. # php_value post_max_size 999M
  83.  
  84. # 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
  85. # php_value max_execution_time 200
  86.  
  87. # 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
  88. # php_value max_input_time 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement