Просмотр файла .htaccess

Размер файла: 3.97Kb
  1. AddType audio/basic .au .snd
  2. AddType audio/mpeg .mpga .mp2 .mp3
  3. AddType audio/x-pn-realaudio-plugin .rpm
  4. AddType audio/x-realaudio .ra
  5. AddType audio/x-wav .wav
  6. AddType video/x-sgi-movie .movie
  7. AddType model/vrml .wrl .vrml
  8. AddType text/css .css
  9. AddType text/richtext .rtx
  10. AddType text/sgml .sgml .sgm
  11. AddType text/xml .xml
  12. AddType application/msword .doc
  13. AddType application/vnd.ms-excel .xls
  14. AddType application/vnd.ms-powerpoint .ppt
  15. AddType application/postscript .ai .eps .ps
  16. AddType application/x-shockwave-flash .swf
  17. AddType text/html .html .htm
  18. AddType text/plain .txt .asc
  19. AddType application/octet-stream .bin .exe
  20. AddType application/oda .oda
  21. AddType application/pdf .pdf
  22. AddType application/rtf .rtf
  23. AddType image/gif .gif .GIF
  24. AddType image/ief .ief
  25. AddType image/jpeg .jpeg .jpg .jpe .JPG
  26. AddType image/tiff .tiff .tif
  27. AddType image/x-portable-anymap .pnm
  28. AddType image/x-portable-bitmap .pbm
  29. AddType image/x-portable-graymap .pgm
  30. AddType image/x-portable-pixmap .ppm
  31. AddType image/x-rgb .rgb
  32. AddType image/x-xbitmap .xbm
  33. AddType image/x-xpixmap .xpm
  34. AddType image/x-xwindowdump .xwd
  35. AddType audio/x-aiff .aif .aiff .aifc
  36. AddType audio/x-pn-realaudio .ram .rm
  37. AddType video/mpeg .mpeg .mpg .mpe
  38. AddType video/quicktime .qt .mov
  39. AddType video/x-msvideo .avi
  40. Addtype application/vnd.sonyericsson.mms-template tpl
  41. Addtype application/vnd.wap.wmlc .wmlc
  42. Addtype application/vnd.wap.wmlscriptc .wmlsc
  43. Addtype application/vnd.eri.thm .thm
  44. Addtype application/vnd.mophun.application .mpn
  45. Addtype application/vnd.mophun.certificate .mpc
  46. Addtype application/x-gtar .gtar
  47. Addtype application/x-tar .tar
  48. Addtype application/x-zip-compressed .zip
  49. Addtype application/x-rar-compressed .rar
  50. Addtype application/vnd.wap.mms-message .mms
  51. Addtype application/smil .smil
  52. Addtype application/smil .smi
  53. Addtype application/java-archive .jar
  54. Addtype application/vnd.symbian.install .sis
  55. Addtype application/vnd.smaf .mmf
  56. Addtype application/x-tar .hid
  57. Addtype text/vnd.wap.wml;charset=utf-8 .wml
  58. Addtype text/vnd.wap.wmlscript .wmls
  59. Addtype text/x-vmel .mel
  60. Addtype text/vnd.sun.j2me.app-descriptor;charset=UTF-8 .jad
  61. Addtype text/x-vmel .emy
  62. Addtype text/x-imelody .imy
  63. Addtype text/x-emelody .emy
  64. Addtype text/x-vcard .vcf
  65. Addtype text/x-vcalendar .vcs
  66. Addtype text/calendar .ics
  67. Addtype audio/imelody .imy
  68. Addtype audio/amr .amr
  69. Addtype audio/x-wav .wav
  70. Addtype audio/wav .wav
  71. Addtype audio/midi .midi .mid
  72. Addtype audio/rmf .rmf
  73. Addtype image/png .png
  74. Addtype image/bmp .bmp
  75. Addtype image/vnd.wap.wbmp .wbmp
  76. Addtype video/mp4 .mp4
  77. Addtype video/3gpp .3gp
  78.  
  79. <Files ~ "includes|local">
  80. Order allow,deny
  81. Deny from all
  82. </Files>
  83. <Files ~ ".(dat|sfx)$">
  84. Order allow,deny
  85. Deny from all
  86. </Files>
  87.  
  88. php_value register_globals Off
  89. php_value url_rewriter.tags On
  90. php_value session.use_trans_sid On
  91. php_value magic_quotes_gpc Off
  92. php_value magic_quotes_runtime Off
  93. php_value magic_quotes_sybase Off
  94. php_value file_uploads On
  95. php_value date.timezone "Europe/Moscow"
  96. php_value short_open_tag On
  97.  
  98. DirectoryIndex index.php
  99. AddDefaultCharset UTF-8
  100. Options -Indexes
  101.  
  102. ErrorDocument 403 /pages/error.php?error=403
  103. ErrorDocument 404 /pages/error.php?error=404
  104.  
  105. RewriteEngine On
  106. RewriteCond %{REQUEST_METHOD} ^TRACE
  107. RewriteRule .* - [F]
  108.  
  109. FileETag MTime Size
  110. <ifmodule mod_expires.c>
  111. <filesmatch ".(ico|jpg|gif|png|css|js)$">
  112. ExpiresActive on
  113. ExpiresDefault "access plus 1 month"
  114. </filesmatch>
  115. </ifmodule>
  116.  
  117. <IfModule mod_expires.c>
  118. ExpiresActive On
  119. ExpiresByType image/x-icon "access plus 2 weeks"
  120. ExpiresByType image/png "access plus 2 weeks"
  121. ExpiresByType image/jpeg "access plus 2 weeks"
  122. ExpiresByType image/gif "access plus 2 weeks"
  123. ExpiresByType text/javascript "access plus 1 week"
  124. ExpiresByType text/css "access plus 1 week"
  125. </IfModule>
  126.  
  127. <IfModule mod_headers.c>
  128. <FilesMatch .*\.(js|css)$>
  129. Header set Cache-control: private
  130. </FilesMatch>
  131.  
  132. <FilesMatch .*\.(gif|jpg|png)$>
  133. Header set Cache-control: public
  134. </FilesMatch>
  135. </IfModule>