changes to public entry access with outer public html entry access
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4395d3ed10
commit
a4acfcaded
36
.htaccess
36
.htaccess
@ -1,14 +1,32 @@
|
|||||||
Options +SymLinksIfOwnerMatch
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
<IfModule mod_negotiation.c>
|
||||||
|
Options -MultiViews -Indexes
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
# Allow Installatron requests
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_FILENAME} deleteme\.\w+\.php
|
|
||||||
RewriteRule (.*) - [L]
|
|
||||||
|
|
||||||
RewriteRule ^ index.php [L]
|
# Preserve Authorization header for API/auth
|
||||||
|
RewriteCond %{HTTP:Authorization} .
|
||||||
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|
||||||
<FilesMatch “\.(php4|php5|php3|php2|php|phtml)$”>
|
# Redirect any requests for /home/... static files into the public/home folder
|
||||||
|
RewriteCond %{REQUEST_URI} !^/public/
|
||||||
|
RewriteCond %{REQUEST_URI} ^/home/.*\.(css|js|png|jpe?g|gif|svg|ico|woff2?|ttf|eot|otf|webp)$ [NC]
|
||||||
|
RewriteRule ^(.*)$ public/$1 [L]
|
||||||
|
|
||||||
SetHandler application/x-lsphp81
|
# Serve existing files and directories directly
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
</FilesMatch>
|
# Remove trailing slashes for non-directories
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.+)/$ /$1 [L,R=301]
|
||||||
|
|
||||||
|
# All other requests go to Laravel's front controller
|
||||||
|
RewriteRule ^ index.php [L]
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
|
||||||
|
SetHandler application/x-lsphp81
|
||||||
|
</FilesMatch>
|
||||||
|
@ -5,17 +5,28 @@
|
|||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
# Handle Authorization Header
|
# Preserve Authorization header for API/auth
|
||||||
RewriteCond %{HTTP:Authorization} .
|
RewriteCond %{HTTP:Authorization} .
|
||||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||||
|
|
||||||
# Redirect Trailing Slashes If Not A Folder...
|
# Redirect any requests for /home/... static files into the public/home folder
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_URI} !^/public/
|
||||||
RewriteCond %{REQUEST_URI} (.+)/$
|
RewriteCond %{REQUEST_URI} ^/home/.*\.(css|js|png|jpe?g|gif|svg|ico|woff2?|ttf|eot|otf|webp)$ [NC]
|
||||||
RewriteRule ^ %1 [L,R=301]
|
RewriteRule ^(.*)$ public/$1 [L]
|
||||||
|
|
||||||
# Send Requests To Front Controller...
|
# Serve existing files and directories directly
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
|
# Remove trailing slashes for non-directories
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteRule ^(.+)/$ /$1 [L,R=301]
|
||||||
|
|
||||||
|
# All other requests go to Laravel's front controller
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
|
||||||
|
SetHandler application/x-lsphp81
|
||||||
|
</FilesMatch>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user