Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3.  
  4. RewriteCond %{HTTP_HOST} www.hacklido.com
  5. RewriteRule (.*) https://hacklido.com/$1 [R=301,L]
  6. # Ensure the Authorization HTTP header is available to PHP
  7. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  8.  
  9. # Uncomment the following lines if you are not using a `public` directory
  10. # to prevent sensitive resources from being exposed.
  11. # RewriteRule /\.git / [F,L]
  12. # RewriteRule ^auth\.json$ / [F,L]
  13. # RewriteRule ^composer\.(lock|json)$ / [F,L]
  14. # RewriteRule ^config.php$ / [F,L]
  15. # RewriteRule ^flarum$ / [F,L]
  16. # RewriteRule ^storage/(.*)?$ / [F,L]
  17. # RewriteRule ^vendor/(.*)?$ / [F,L]
  18.  
  19. # Pass requests that don't refer directly to files in the filesystem to index.php
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteRule ^ index.php [QSA,L]
  23. </IfModule>
  24.  
  25. # Disable directory listings
  26. Options -Indexes
  27.  
  28. # MultiViews can mess up our rewriting scheme
  29. Options -MultiViews
  30.  
  31. # The following directives are based on best practices from H5BP Apache Server Configs
  32. # https://github.com/h5bp/server-configs-apache
  33.  
  34. # Expire rules for static content
  35. <IfModule mod_expires.c>
  36. ExpiresActive on
  37. ExpiresDefault "access plus 1 month"
  38. ExpiresByType text/css "access plus 1 year"
  39. ExpiresByType application/atom+xml "access plus 1 hour"
  40. ExpiresByType application/rdf+xml "access plus 1 hour"
  41. ExpiresByType application/rss+xml "access plus 1 hour"
  42. ExpiresByType application/json "access plus 0 seconds"
  43. ExpiresByType application/ld+json "access plus 0 seconds"
  44. ExpiresByType application/schema+json "access plus 0 seconds"
  45. ExpiresByType application/vnd.geo+json "access plus 0 seconds"
  46. ExpiresByType application/vnd.api+json "access plus 0 seconds"
  47. ExpiresByType application/xml "access plus 0 seconds"
  48. ExpiresByType text/calendar "access plus 0 seconds"
  49. ExpiresByType text/xml "access plus 0 seconds"
  50. ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
  51. ExpiresByType image/x-icon "access plus 1 week"
  52. ExpiresByType text/html "access plus 0 seconds"
  53. ExpiresByType application/javascript "access plus 1 year"
  54. ExpiresByType application/x-javascript "access plus 1 year"
  55. ExpiresByType text/javascript "access plus 1 year"
  56. ExpiresByType application/manifest+json "access plus 1 week"
  57. ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
  58. ExpiresByType text/cache-manifest "access plus 0 seconds"
  59. ExpiresByType text/markdown "access plus 0 seconds"
  60. ExpiresByType audio/ogg "access plus 1 month"
  61. ExpiresByType image/bmp "access plus 1 month"
  62. ExpiresByType image/gif "access plus 1 month"
  63. ExpiresByType image/jpeg "access plus 1 month"
  64. ExpiresByType image/png "access plus 1 month"
  65. ExpiresByType image/svg+xml "access plus 1 month"
  66. ExpiresByType image/webp "access plus 1 month"
  67. ExpiresByType video/mp4 "access plus 1 month"
  68. ExpiresByType video/ogg "access plus 1 month"
  69. ExpiresByType video/webm "access plus 1 month"
  70. ExpiresByType application/wasm "access plus 1 year"
  71. ExpiresByType font/collection "access plus 1 month"
  72. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  73. ExpiresByType font/eot "access plus 1 month"
  74. ExpiresByType font/opentype "access plus 1 month"
  75. ExpiresByType font/otf "access plus 1 month"
  76. ExpiresByType application/x-font-ttf "access plus 1 month"
  77. ExpiresByType font/ttf "access plus 1 month"
  78. ExpiresByType application/font-woff "access plus 1 month"
  79. ExpiresByType application/x-font-woff "access plus 1 month"
  80. ExpiresByType font/woff "access plus 1 month"
  81. ExpiresByType application/font-woff2 "access plus 1 month"
  82. ExpiresByType font/woff2 "access plus 1 month"
  83. ExpiresByType text/x-cross-domain-policy "access plus 1 week"
  84. </IfModule>
  85.  
  86. # Gzip compression
  87. <IfModule mod_deflate.c>
  88. <IfModule mod_filter.c>
  89. AddOutputFilterByType DEFLATE "application/atom+xml" \
  90. "application/javascript" \
  91. "application/json" \
  92. "application/ld+json" \
  93. "application/manifest+json" \
  94. "application/rdf+xml" \
  95. "application/rss+xml" \
  96. "application/schema+json" \
  97. "application/vnd.geo+json" \
  98. "application/vnd.ms-fontobject" \
  99. "application/wasm" \
  100. "application/x-font-ttf" \
  101. "application/x-javascript" \
  102. "application/x-web-app-manifest+json" \
  103. "application/xhtml+xml" \
  104. "application/xml" \
  105. "font/collection" \
  106. "font/eot" \
  107. "font/opentype" \
  108. "font/otf" \
  109. "font/ttf" \
  110. "image/bmp" \
  111. "image/svg+xml" \
  112. "image/vnd.microsoft.icon" \
  113. "image/x-icon" \
  114. "text/cache-manifest" \
  115. "text/calendar" \
  116. "text/css" \
  117. "text/html" \
  118. "text/javascript" \
  119. "text/plain" \
  120. "text/markdown" \
  121. "text/vcard" \
  122. "text/vnd.rim.location.xloc" \
  123. "text/vtt" \
  124. "text/x-component" \
  125. "text/x-cross-domain-policy" \
  126. "text/xml"
  127. </IfModule>
  128. </IfModule>
  129.  
  130. # Fix for https://httpoxy.org vulnerability
  131. <IfModule mod_headers.c>
  132. RequestHeader unset Proxy
  133. </IfModule>
  134.  
  135. # HTTP to HTTPS redirect
  136. RewriteEngine On
  137. RewriteCond %{HTTPS} !=on
  138. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
  139. Header always set Content-Security-Policy "upgrade-insecure-requests;"
  140.  
  141.  
  142. # php -- BEGIN cPanel-generated handler, do not edit
  143. # This domain inherits the “PHP” package.
  144. # php -- END cPanel-generated handler, do not edit
  145.  
  146. # BEGIN cPanel-generated php ini directives, do not edit
  147. # Manual editing of this file may result in unexpected behavior.
  148. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
  149. # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
  150. <IfModule php7_module>
  151. php_flag display_errors Off
  152. php_value max_execution_time 300
  153. php_value max_input_time 60
  154. php_value max_input_vars 5000
  155. php_value memory_limit 128M
  156. php_value post_max_size 8M
  157. php_value session.gc_maxlifetime 1440
  158. php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
  159. php_value upload_max_filesize 8M
  160. php_flag zlib.output_compression Off
  161. </IfModule>
  162. <IfModule lsapi_module>
  163. php_flag display_errors Off
  164. php_value max_execution_time 300
  165. php_value max_input_time 60
  166. php_value max_input_vars 5000
  167. php_value memory_limit 128M
  168. php_value post_max_size 8M
  169. php_value session.gc_maxlifetime 1440
  170. php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
  171. php_value upload_max_filesize 8M
  172. php_flag zlib.output_compression Off
  173. </IfModule>
  174. # END cPanel-generated php ini directives, do not edit
  175.