23 lines
685 B
ApacheConf
23 lines
685 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
RewriteBase /accounting_dev
|
|
|
|
# Redirect requests to index.php
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule ^(.*)$ index.php?/$1 [L]
|
|
</IfModule>
|
|
|
|
Options -Indexes
|
|
|
|
<FilesMatch "(^\.|composer\.(json|lock)$|.*\.(env|ini|log|sql|bak|dist))$">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
<IfModule mod_headers.c>
|
|
Header always set X-Content-Type-Options "nosniff"
|
|
Header always set X-Frame-Options "SAMEORIGIN"
|
|
Header always set Referrer-Policy "strict-origin-when-cross-origin"
|
|
Header always set Permissions-Policy "camera=(self), geolocation=(), microphone=()"
|
|
</IfModule>
|