Create .htaccess

This commit is contained in:
OSPanel 2024-04-25 19:57:16 +03:00
parent a8d1086374
commit 32a23a3e20

View file

@ -0,0 +1,20 @@
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset UTF-8
AddCharset UTF-8 .html
<FilesMatch "\.(html)$">
Header set Cache-Control: "no-cache, no-store"
Header unset ETag
</FilesMatch>
Header always set X-Content-Type-Options "nosniff"
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index\.html$
RewriteCond %{REQUEST_URI} !^/apacheerror/
RewriteCond %{REQUEST_URI} !^/apacheicons/
RewriteCond %{REQUEST_URI} !^/server-status$
RewriteCond %{REQUEST_URI} !^/server-info$
RewriteCond %{REQUEST_URI} !^/watch-table$
RewriteRule . /index.html [L]