Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.57 KB | None | 0 0
  1. RewriteEngine On
  2.  
  3.  
  4.  
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6.  
  7. RewriteCond %{REQUEST_FILENAME} !-f
  8.  
  9. RewriteCond %{REQUEST_FILENAME} !-l
  10.  
  11.  
  12.  
  13. RewriteRule ^(.*)$ index.php?page=$1 [QSA,L]
  14.  
  15.  
  16.  
  17. <Files 403.shtml>
  18.  
  19. order allow,deny
  20.  
  21. allow from all
  22.  
  23. </Files>
  24.  
  25. <IfModule mod_deflate.c>
  26.  
  27. AddOutputFilterByType DEFLATE text/phtml
  28.  
  29. AddOutputFilterByType DEFLATE text/plain
  30.  
  31. AddOutputFilterByType DEFLATE text/html
  32.  
  33. AddOutputFilterByType DEFLATE text/xml
  34.  
  35. AddOutputFilterByType DEFLATE text/css
  36.  
  37. AddOutputFilterByType DEFLATE application/xml
  38.  
  39. AddOutputFilterByType DEFLATE application/xhtml+xml
  40.  
  41. AddOutputFilterByType DEFLATE application/rss+xml
  42.  
  43. AddOutputFilterByType DEFLATE application/javascript
  44.  
  45. AddOutputFilterByType DEFLATE application/x-javascript
  46.  
  47. AddOutputFilterByType DEFLATE text/javascript
  48.  
  49. </IfModule>
  50.  
  51. <IfModule mod_expires.c>
  52.  
  53. FileETag MTime Size
  54.  
  55.  
  56.  
  57. SetOutputFilter DEFLATE
  58.  
  59. Header set Expires "max-age=29030400, public"
  60.  
  61. Header unset ETag
  62.  
  63. FileETag None
  64.  
  65. ExpiresActive On
  66.  
  67. ExpiresByType image/jpg "access 1 year"
  68.  
  69. ExpiresByType image/jpeg "access 1 year"
  70.  
  71. ExpiresByType image/gif "access 1 year"
  72.  
  73. ExpiresByType image/png "access 1 year"
  74.  
  75. ExpiresByType text/css "access 1 month"
  76.  
  77. ExpiresByType text/html "access 1 month"
  78.  
  79. ExpiresByType application/pdf "access 1 month"
  80.  
  81. ExpiresByType text/javascript "access plus 2 month"
  82.  
  83. ExpiresByType application/x-shockwave-flash "access 1 month"
  84.  
  85. ExpiresByType image/x-icon "access 1 year"
  86.  
  87. ExpiresDefault "access 1 month"
  88.  
  89. ExpiresByType text/css A31536000
  90.  
  91. ExpiresByType text/x-component A31536000
  92.  
  93. ExpiresByType application/x-javascript A31536000
  94.  
  95. ExpiresByType application/javascript A31536000
  96.  
  97. ExpiresByType text/javascript A31536000
  98.  
  99. ExpiresByType text/x-js A31536000
  100.  
  101. ExpiresByType text/html A3600
  102.  
  103. ExpiresByType text/richtext A3600
  104.  
  105. ExpiresByType image/svg+xml A3600
  106.  
  107. ExpiresByType text/plain A3600
  108.  
  109. ExpiresByType text/xsd A3600
  110.  
  111. ExpiresByType text/xsl A3600
  112.  
  113. ExpiresByType text/xml A3600
  114.  
  115. ExpiresByType video/asf A31536000
  116.  
  117. ExpiresByType video/avi A31536000
  118.  
  119. ExpiresByType image/bmp A31536000
  120.  
  121. ExpiresByType application/java A31536000
  122.  
  123. ExpiresByType video/divx A31536000
  124.  
  125. ExpiresByType application/msword A31536000
  126.  
  127. ExpiresByType application/vnd.ms-fontobject A31536000
  128.  
  129. ExpiresByType application/x-msdownload A31536000
  130.  
  131. ExpiresByType image/gif A31536000
  132.  
  133. ExpiresByType application/x-gzip A31536000
  134.  
  135. ExpiresByType image/x-icon A31536000
  136.  
  137. ExpiresByType image/jpeg A31536000
  138.  
  139. ExpiresByType application/json A31536000
  140.  
  141. ExpiresByType application/vnd.ms-access A31536000
  142.  
  143. ExpiresByType audio/midi A31536000
  144.  
  145. ExpiresByType video/quicktime A31536000
  146.  
  147. ExpiresByType audio/mpeg A31536000
  148.  
  149. ExpiresByType video/mp4 A31536000
  150.  
  151. ExpiresByType video/mpeg A31536000
  152.  
  153. ExpiresByType application/vnd.ms-project A31536000
  154.  
  155. ExpiresByType application/x-font-otf A31536000
  156.  
  157. ExpiresByType application/vnd.ms-opentype A31536000
  158.  
  159. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  160.  
  161. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  162.  
  163. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  164.  
  165. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  166.  
  167. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  168.  
  169. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  170.  
  171. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  172.  
  173. ExpiresByType audio/ogg A31536000
  174.  
  175. ExpiresByType application/pdf A31536000
  176.  
  177. ExpiresByType image/png A31536000
  178.  
  179. ExpiresByType application/vnd.ms-powerpoint A31536000
  180.  
  181. ExpiresByType audio/x-realaudio A31536000
  182.  
  183. ExpiresByType image/svg+xml A31536000
  184.  
  185. ExpiresByType application/x-shockwave-flash A31536000
  186.  
  187. ExpiresByType application/x-tar A31536000
  188.  
  189. ExpiresByType image/tiff A31536000
  190.  
  191. ExpiresByType application/x-font-ttf A31536000
  192.  
  193. ExpiresByType application/vnd.ms-opentype A31536000
  194.  
  195. ExpiresByType audio/wav A31536000
  196.  
  197. ExpiresByType audio/wma A31536000
  198.  
  199. ExpiresByType application/vnd.ms-write A31536000
  200.  
  201. ExpiresByType application/font-woff A31536000
  202.  
  203. ExpiresByType application/font-woff2 A31536000
  204.  
  205. ExpiresByType application/vnd.ms-excel A31536000
  206.  
  207. ExpiresByType application/zip A31536000
  208.  
  209. </IfModule>
  210.  
  211. <ifModule mod_headers.c>
  212.  
  213.  
  214.  
  215. Header set Connection keep-alive
  216.  
  217. <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
  218.  
  219. Header set Cache-Control "public"
  220.  
  221. </filesMatch>
  222.  
  223. <filesMatch "\.(css)$">
  224.  
  225. Header set Cache-Control "public"
  226.  
  227. </filesMatch>
  228.  
  229. <filesMatch "\.(js)$">
  230.  
  231. Header set Cache-Control "private"
  232.  
  233. </filesMatch>
  234.  
  235. <filesMatch "\.(x?html?|php)$">
  236.  
  237. Header set Cache-Control "private, must-revalidate"
  238.  
  239. </filesMatch>
  240.  
  241. <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
  242.  
  243. Header set Cache-Control "max-age=2592000, public"
  244.  
  245. </filesMatch>
  246.  
  247. <filesMatch "\.(css)$">
  248.  
  249. Header set Cache-Control "max-age=604800, public"
  250.  
  251. </filesMatch>
  252.  
  253. <filesMatch "\.(js)$">
  254.  
  255. Header set Cache-Control "max-age=216000, private"
  256.  
  257. </filesMatch>
  258.  
  259. <filesMatch "\.(xml|txt)$">
  260.  
  261. Header set Cache-Control "max-age=216000, public, must-revalidate"
  262.  
  263. </filesMatch>
  264.  
  265. <filesMatch "\.(html|htm|php)$">
  266.  
  267. Header set Cache-Control "max-age=1, private, must-revalidate"
  268.  
  269. </filesMatch>
  270.  
  271. </ifModule>
  272.  
  273. # php -- BEGIN cPanel-generated handler, do not edit
  274.  
  275. # Set the “ea-php56” package as the default “PHP” programming language.
  276.  
  277. <IfModule mime_module>
  278.  
  279. AddType application/x-httpd-ea-php56 .php .php5 .phtml
  280.  
  281. </IfModule>
  282.  
  283. # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement