PageRenderTime 24ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/codefight-cms/parkeddomains/.htaccess

http://cmsdamu.googlecode.com/
#! | 183 lines | 120 code | 63 blank | 0 comment | 0 complexity | 41b98408c2c4c8a218155dd5d84efdc9 MD5 | raw file
Possible License(s): CC-BY-SA-3.0, LGPL-2.1, AGPL-1.0, GPL-2.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. # Action php5-cgi /cgi-bin/php5-cgi
  6. # AddHandler php5-cgi .php
  7. ############################################
  8. ## GoDaddy specific options
  9. # Options -MultiViews
  10. ## you might also need to add this line to php.ini
  11. ## cgi.fix_pathinfo = 1
  12. ## if it still doesn't work, rename php.ini to php5.ini
  13. ############################################
  14. ## this line is specific for 1and1 hosting
  15. #AddType x-mapp-php5 .php
  16. #AddHandler x-mapp-php5 .php
  17. ############################################
  18. ## default index file
  19. DirectoryIndex index.php
  20. <IfModule mod_php5.c>
  21. ############################################
  22. ## adjust memory limit
  23. # php_value memory_limit 64M
  24. php_value memory_limit 128M
  25. php_value max_execution_time 18000
  26. ############################################
  27. ## disable magic quotes for php request vars
  28. php_flag magic_quotes_gpc off
  29. ############################################
  30. ## disable automatic session start
  31. ## before autoload was initialized
  32. php_flag session.auto_start off
  33. ############################################
  34. ## enable resulting html compression
  35. #php_flag zlib.output_compression on
  36. ###########################################
  37. # disable user agent verification to not break multiple image upload
  38. php_flag suhosin.session.cryptua off
  39. ###########################################
  40. # turn off compatibility with PHP4 when dealing with objects
  41. php_flag zend.ze1_compatibility_mode Off
  42. </IfModule>
  43. <IfModule mod_security.c>
  44. ###########################################
  45. # disable POST processing to not break multiple image upload
  46. SecFilterEngine Off
  47. SecFilterScanPOST Off
  48. </IfModule>
  49. <IfModule mod_deflate.c>
  50. ############################################
  51. ## enable apache served files compression
  52. ## http://developer.yahoo.com/performance/rules.html#gzip
  53. # Insert filter on all content
  54. ###SetOutputFilter DEFLATE
  55. # Insert filter on selected content types only
  56. #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  57. # Netscape 4.x has some problems...
  58. #BrowserMatch ^Mozilla/4 gzip-only-text/html
  59. # Netscape 4.06-4.08 have some more problems
  60. #BrowserMatch ^Mozilla/4\.0[678] no-gzip
  61. # MSIE masquerades as Netscape, but it is fine
  62. #BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  63. # Don't compress images
  64. #SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  65. # Make sure proxies don't deliver the wrong content
  66. #Header append Vary User-Agent env=!dont-vary
  67. </IfModule>
  68. <IfModule mod_ssl.c>
  69. ############################################
  70. ## make HTTPS env vars available for CGI mode
  71. SSLOptions StdEnvVars
  72. </IfModule>
  73. <IfModule mod_rewrite.c>
  74. ############################################
  75. ## enable rewrites
  76. Options +FollowSymLinks
  77. RewriteEngine on
  78. ############################################
  79. ## you can put here your codefight root folder
  80. ## path relative to web root
  81. #RewriteBase /codefight/
  82. ############################################
  83. ## workaround for HTTP authorization
  84. ## in CGI environment
  85. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  86. ############################################
  87. ## Point media files to original website | required for multiple websites
  88. RewriteCond %{REQUEST_URI} ^/(media/|js/).*/ [NC]
  89. RewriteRule ^(.*)$ http://local.codefight.org/$1 [L]
  90. ############################################
  91. ## always send 404 on missing files in these folders
  92. #RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
  93. ############################################
  94. ## never rewrite for existing files, directories and links
  95. RewriteCond %{REQUEST_FILENAME} !-f
  96. RewriteCond %{REQUEST_FILENAME} !-d
  97. RewriteCond %{REQUEST_FILENAME} !-l
  98. ############################################
  99. ## rewrite everything else to index.php
  100. RewriteRule ^(.*)$ index.php/$1 [L]
  101. </IfModule>
  102. ############################################
  103. ## Prevent character encoding issues from server overrides
  104. ## If you still have problems, use the second line instead
  105. AddDefaultCharset Off
  106. #AddDefaultCharset UTF-8
  107. <IfModule mod_expires.c>
  108. ############################################
  109. ## Add default Expires header
  110. ## http://developer.yahoo.com/performance/rules.html#expires
  111. ExpiresDefault "access plus 1 year"
  112. </IfModule>
  113. ############################################
  114. ## By default allow all access
  115. Order allow,deny
  116. Allow from all
  117. ############################################
  118. ## If running in cluster environment, uncomment this
  119. ## http://developer.yahoo.com/performance/rules.html#etags
  120. #FileETag none