44
public/htaccess.example
Executable file
44
public/htaccess.example
Executable file
@@ -0,0 +1,44 @@
|
||||
<FilesMatch "(?i)\.(php[0-9]?|phtml)$">
|
||||
Require all denied
|
||||
</FilesMatch>
|
||||
<FilesMatch "index.php">
|
||||
Require all granted
|
||||
</FilesMatch>
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
##
|
||||
## You may need to uncomment (remove #) the following line for some hosting environments,
|
||||
## if you have installed to a subdirectory, enter the name here also.
|
||||
## Example: for https://site.com enter: "/", for https://site.com/something enter: "/something/"
|
||||
##
|
||||
# RewriteBase /
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
||||
|
||||
# Handle Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
<Files "ngsw-worker.js">
|
||||
Header Set Service-Worker-allowed "/"
|
||||
</Files>
|
||||
</IfModule>
|
||||
|
||||
# php -- BEGIN cPanel-generated handler, do not edit
|
||||
# php -- END cPanel-generated handler, do not edit
|
||||
|
||||
Reference in New Issue
Block a user