Advertisement
Guest User

Untitled

a guest
May 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. #AddType x-mapp-php5 .php
  2. #AddHandler x-mapp-php5 .php
  3.  
  4. DirectoryIndex xyz/site/public_html/index.php
  5.  
  6. php_value memory_limit 256M
  7. php_value max_execution_time 259200 php_flag display_errors off
  8.  
  9. php_flag magic_quotes_gpc off
  10.  
  11. php_flag session.auto_start off
  12.  
  13. php_flag zlib.output_compression on
  14.  
  15. php_flag suhosin.session.cryptua off
  16.  
  17. php_flag zend.ze1_compatibility_mode Off
  18.  
  19. SecFilterEngine Off
  20. SecFilterScanPOST Off
  21.  
  22. # Insert filter on all content
  23. SetOutputFilter DEFLATE
  24. # Insert filter on selected content types only
  25. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  26.  
  27. # Netscape 4.x has some problems...
  28. BrowserMatch ^Mozilla/4 gzip-only-text/html
  29.  
  30. # Netscape 4.06-4.08 have some more problems
  31. BrowserMatch ^Mozilla/4.0[678] no-gzip
  32.  
  33. # MSIE masquerades as Netscape, but it is fine
  34. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  35.  
  36. # Don't compress images
  37. SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
  38.  
  39. # Make sure proxies don't deliver the wrong content
  40. #Header append Vary User-Agent env=!dont-vary
  41.  
  42. SSLOptions StdEnvVars
  43.  
  44. Options +FollowSymLinks
  45. RewriteEngine on
  46.  
  47. RewriteRule ^api/rest api.php?type=rest [QSA,L]
  48.  
  49. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  50.  
  51. RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
  52. RewriteRule .* - [L,R=405]
  53.  
  54. #RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
  55. #RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
  56. #RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
  57.  
  58. RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
  59.  
  60. RewriteCond %{REQUEST_FILENAME} !-f
  61. RewriteCond %{REQUEST_FILENAME} !-d
  62. RewriteCond %{REQUEST_FILENAME} !-l
  63.  
  64. RewriteRule .* xyx/site/public_html/index.php [L]
  65.  
  66. AddDefaultCharset Off
  67. AddDefaultCharset UTF-8
  68.  
  69. Order allow,deny
  70. Allow from all
  71.  
  72. <Files RELEASE_NOTES.txt>
  73. order allow,deny
  74. deny from all
  75. </Files>
  76.  
  77. FileETag none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement