Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. ############################################
  2. ## uncomment these lines for CGI mode
  3. ## make sure to specify the correct cgi php binary file name
  4. ## it might be /cgi-bin/php-cgi
  5.  
  6. # Action php5-cgi /cgi-bin/php5-cgi
  7. # AddHandler php5-cgi .php
  8.  
  9. ############################################
  10. ## GoDaddy specific options
  11.  
  12. # Options -MultiViews
  13.  
  14. ## you might also need to add this line to php.ini
  15. ## cgi.fix_pathinfo = 1
  16. ## if it still doesn't work, rename php.ini to php5.ini
  17.  
  18. ############################################
  19. ## this line is specific for 1and1 hosting
  20.  
  21. #AddType x-mapp-php5 .php
  22. #AddHandler x-mapp-php5 .php
  23.  
  24. ############################################
  25. ## default index file
  26.  
  27. DirectoryIndex index.php
  28.  
  29. <IfModule mod_php5.c>
  30.  
  31. ############################################
  32. ## adjust memory limit
  33.  
  34. php_value memory_limit 512M
  35. php_value max_execution_time 18000
  36.  
  37. ############################################
  38. ## disable magic quotes for php request vars
  39.  
  40. php_flag magic_quotes_gpc off
  41.  
  42. ############################################
  43. ## disable automatic session start
  44. ## before autoload was initialized
  45.  
  46. php_flag session.auto_start off
  47.  
  48. ############################################
  49. ## enable resulting html compression
  50.  
  51. #php_flag zlib.output_compression on
  52.  
  53. ###########################################
  54. # disable user agent verification to not break multiple image upload
  55.  
  56. php_flag suhosin.session.cryptua off
  57.  
  58. ###########################################
  59. # turn off compatibility with PHP4 when dealing with objects
  60.  
  61. php_flag zend.ze1_compatibility_mode Off
  62.  
  63. </IfModule>
  64.  
  65. <IfModule mod_security.c>
  66. ###########################################
  67. # disable POST processing to not break multiple image upload
  68.  
  69. SecFilterEngine Off
  70. SecFilterScanPOST Off
  71. </IfModule>
  72.  
  73. <IfModule mod_deflate.c>
  74.  
  75. ############################################
  76. ## enable apache served files compression
  77. ## http://developer.yahoo.com/performance/rules.html#gzip
  78.  
  79. # Insert filter on all content
  80. SetOutputFilter DEFLATE
  81. # Insert filter on selected content types only
  82. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  83.  
  84. # Netscape 4.x has some problems...
  85. BrowserMatch ^Mozilla/4 gzip-only-text/html
  86.  
  87. # Netscape 4.06-4.08 have some more problems
  88. BrowserMatch ^Mozilla/4.0[678] no-gzip
  89.  
  90. # MSIE masquerades as Netscape, but it is fine
  91. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  92.  
  93. # Don't compress images
  94. SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
  95.  
  96. # Make sure proxies don't deliver the wrong content
  97. Header append Vary User-Agent env=!dont-vary
  98.  
  99. </IfModule>
  100.  
  101. <IfModule mod_ssl.c>
  102.  
  103. ############################################
  104. ## make HTTPS env vars available for CGI mode
  105.  
  106. SSLOptions StdEnvVars
  107.  
  108. </IfModule>
  109.  
  110. <IfModule mod_rewrite.c>
  111.  
  112. ############################################
  113. ## enable rewrites
  114.  
  115. Options +FollowSymLinks
  116. RewriteEngine on
  117.  
  118. ############################################
  119. ## you can put here your magento root folder
  120. ## path relative to web root
  121.  
  122. RewriteBase /shop/
  123.  
  124. ############################################
  125. ## uncomment next line to enable light API calls processing
  126.  
  127. # RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]
  128.  
  129. ############################################
  130. ## rewrite API2 calls to api.php (by now it is REST only)
  131.  
  132. RewriteRule ^api/rest api.php?type=rest [QSA,L]
  133.  
  134. ############################################
  135. ## workaround for HTTP authorization
  136. ## in CGI environment
  137.  
  138. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  139.  
  140. ############################################
  141. ## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
  142.  
  143. RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
  144. RewriteRule .* - [L,R=405]
  145.  
  146. ############################################
  147. ## redirect for mobile user agents
  148.  
  149. #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
  150. #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
  151. #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
  152.  
  153. ############################################
  154. ## always send 404 on missing files in these folders
  155.  
  156. RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
  157.  
  158. ############################################
  159. ## never rewrite for existing files, directories and links
  160.  
  161. RewriteCond %{REQUEST_FILENAME} !-f
  162. RewriteCond %{REQUEST_FILENAME} !-d
  163. RewriteCond %{REQUEST_FILENAME} !-l
  164.  
  165. ############################################
  166. ## rewrite everything else to index.php
  167.  
  168. RewriteRule .* index.php [L]
  169.  
  170. </IfModule>
  171.  
  172.  
  173. ############################################
  174. ## Prevent character encoding issues from server overrides
  175. ## If you still have problems, use the second line instead
  176.  
  177. AddDefaultCharset Off
  178. #AddDefaultCharset UTF-8
  179.  
  180. <IfModule mod_expires.c>
  181.  
  182. ############################################
  183. ## Add default Expires header
  184. ## http://developer.yahoo.com/performance/rules.html#expires
  185.  
  186. ExpiresDefault "access plus 1 year"
  187.  
  188. </IfModule>
  189.  
  190. ############################################
  191. ## By default allow all access
  192.  
  193. Order allow,deny
  194. Allow from all
  195.  
  196. ###########################################
  197. ## Deny access to release notes to prevent disclosure of the installed Magento version
  198.  
  199. <Files RELEASE_NOTES.txt>
  200. order allow,deny
  201. deny from all
  202. </Files>
  203.  
  204. ############################################
  205. ## If running in cluster environment, uncomment this
  206. ## http://developer.yahoo.com/performance/rules.html#etags
  207.  
  208. FileETag none
  209.  
  210. AddHandler application/x-httpd-php54 .php .php5 .php4 .php3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement