Advertisement
Guest User

Heavenz .htaccess

a guest
Jan 20th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.81 KB | None | 0 0
  1.  
  2. # BEGIN WordPress
  3. # The directives (lines) between `BEGIN WordPress` and `END WordPress` are
  4. # dynamically generated, and should only be modified via WordPress filters.
  5. # Any changes to the directives between these markers will be overwritten.
  6. <IfModule mod_rewrite.c>
  7. RewriteEngine On
  8. RewriteBase /
  9. RewriteRule ^index\.php$ - [L]
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule . /index.php [L]
  13. </IfModule>
  14.  
  15. # END WordPress
  16. RewriteCond %{HTTPS} off
  17. RewriteCond %{HTTP:X-Forwarded-SSL} !on
  18. RewriteCond %{HTTP_HOST} ^heavenz\.lk$ [OR]
  19. RewriteCond %{HTTP_HOST} ^www\.heavenz\.lk$
  20. RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
  21. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
  22. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  23. RewriteRule ^/?$ "https\:\/\/heavenz\.lk\/" [R=301,L]
  24.  
  25. # php -- BEGIN cPanel-generated handler, do not edit
  26. # Set the “ea-php73” package as the default “PHP” programming language.
  27. <IfModule mime_module>
  28.   AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
  29. </IfModule>
  30. # php -- END cPanel-generated handler, do not edit
  31.  
  32. <IfModule mod_deflate.c>
  33.   # Compress HTML, CSS, JavaScript, Text, XML and fonts
  34.   AddOutputFilterByType DEFLATE application/javascript
  35.   AddOutputFilterByType DEFLATE application/rss+xml
  36.   AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  37.   AddOutputFilterByType DEFLATE application/x-font
  38.   AddOutputFilterByType DEFLATE application/x-font-opentype
  39.   AddOutputFilterByType DEFLATE application/x-font-otf
  40.   AddOutputFilterByType DEFLATE application/x-font-truetype
  41.   AddOutputFilterByType DEFLATE application/x-font-ttf
  42.   AddOutputFilterByType DEFLATE application/x-javascript
  43.   AddOutputFilterByType DEFLATE application/xhtml+xml
  44.   AddOutputFilterByType DEFLATE application/xml
  45.   AddOutputFilterByType DEFLATE font/opentype
  46.   AddOutputFilterByType DEFLATE font/otf
  47.   AddOutputFilterByType DEFLATE font/ttf
  48.   AddOutputFilterByType DEFLATE image/svg+xml
  49.   AddOutputFilterByType DEFLATE image/x-icon
  50.   AddOutputFilterByType DEFLATE text/css
  51.   AddOutputFilterByType DEFLATE text/html
  52.   AddOutputFilterByType DEFLATE text/javascript
  53.   AddOutputFilterByType DEFLATE text/plain
  54.   AddOutputFilterByType DEFLATE text/xml
  55.  
  56.   # Remove browser bugs (only needed for really old browsers)
  57.   BrowserMatch ^Mozilla/4 gzip-only-text/html
  58.   BrowserMatch ^Mozilla/4\.0[678] no-gzip
  59.   BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  60.   Header append Vary User-Agent
  61. </IfModule>
  62. # BEGIN WP-HUMMINGBIRD-CACHING
  63. # The directives (lines) between `BEGIN WP-HUMMINGBIRD-CACHING` and `END WP-HUMMINGBIRD-CACHING` are
  64. # dynamically generated, and should only be modified via WordPress filters.
  65. # Any changes to the directives between these markers will be overwritten.
  66. <IfModule mod_expires.c>
  67. ExpiresActive On
  68. ExpiresDefault A0
  69.  
  70. <FilesMatch "\.(txt|xml|js)$">
  71. ExpiresDefault A691200
  72. </FilesMatch>
  73.  
  74. <FilesMatch "\.(css)$">
  75. ExpiresDefault A691200
  76. </FilesMatch>
  77.  
  78. <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  79. ExpiresDefault A691200
  80. </FilesMatch>
  81.  
  82. <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  83. ExpiresDefault A691200
  84. </FilesMatch>
  85. </IfModule>
  86.  
  87. <IfModule mod_headers.c>
  88.   <FilesMatch "\.(txt|xml|js)$">
  89.    Header set Cache-Control "max-age=691200"
  90.   </FilesMatch>
  91.  
  92.   <FilesMatch "\.(css)$">
  93.    Header set Cache-Control "max-age=691200"
  94.   </FilesMatch>
  95.  
  96.   <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
  97.    Header set Cache-Control "max-age=691200"
  98.   </FilesMatch>
  99.  
  100.   <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  101.    Header set Cache-Control "max-age=691200"
  102.   </FilesMatch>
  103. </IfModule>
  104. # END WP-HUMMINGBIRD-CACHING
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement