mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-14 19:35:46 +03:00
Allow apache to process existing directories
This commit is contained in:
parent
1a60aeac2e
commit
4f49920526
@ -24,24 +24,20 @@ Options +FollowSymLinks
|
|||||||
php_flag session.auto_start off
|
php_flag session.auto_start off
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Do not allow apache to automatically add trailing slashes for existing
|
|
||||||
# directories. They should be processed by the application.
|
|
||||||
<IfModule mod_dir.c>
|
|
||||||
DirectorySlash Off
|
|
||||||
</IfModule>
|
|
||||||
|
|
||||||
# Redirect requests to the front controller
|
# Redirect requests to the front controller
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
# Use separate front controller for the system installator
|
# Use separate front controller for the system installator
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^install(|/(.*))$ install.php [QSA,L]
|
RewriteRule ^install(|/(.*))$ install.php [QSA,L]
|
||||||
|
|
||||||
# Alter only requests for files that do not exist
|
# Rewrite all other requests for files and directories that do not exist to
|
||||||
|
# the main front controller
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
# Rewrite all other requests to front controller
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)$ app.php [QSA,L]
|
RewriteRule ^(.*)$ index.php [QSA,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Deny access to internal system files
|
# Deny access to internal system files
|
||||||
|
Loading…
Reference in New Issue
Block a user