Update app routing to use index.php instead of proxy
Remove app proxy rule and add condition to route /app requests to index.php while preserving other existing behavior
This commit is contained in:
parent
f48cdc268b
commit
57a3fcb86e
1 changed files with 5 additions and 5 deletions
|
|
@ -4,11 +4,11 @@ DirectorySlash Off
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
|
|
||||||
# Serve static files from /app outside document root
|
# Route /app requests to index.php
|
||||||
RewriteRule ^app/(.*)$ /app-proxy.php?file=$1 [L,QSA]
|
RewriteCond %{REQUEST_URI} ^/app/
|
||||||
|
RewriteRule ^(.*)$ /index.php [L,QSA]
|
||||||
|
|
||||||
# Don't rewrite if file exists
|
# Don't rewrite if file exists
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_URI} !^/app/
|
|
||||||
RewriteRule ^(.*)$ /index.php [L,QSA]
|
RewriteRule ^(.*)$ /index.php [L,QSA]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue