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
|
|
@ -3,12 +3,12 @@ DirectorySlash Off
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
|
||||
# Serve static files from /app outside document root
|
||||
RewriteRule ^app/(.*)$ /app-proxy.php?file=$1 [L,QSA]
|
||||
|
||||
|
||||
# Route /app requests to index.php
|
||||
RewriteCond %{REQUEST_URI} ^/app/
|
||||
RewriteRule ^(.*)$ /index.php [L,QSA]
|
||||
|
||||
# Don't rewrite if file exists
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_URI} !^/app/
|
||||
RewriteRule ^(.*)$ /index.php [L,QSA]
|
||||
</IfModule>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue