diff --git a/src/mibew/.htaccess b/src/mibew/.htaccess index 8d751510..8a26f44f 100644 --- a/src/mibew/.htaccess +++ b/src/mibew/.htaccess @@ -1,6 +1,3 @@ -# Set default handler for incoming requests -DirectoryIndex index.php - # Disable directory listing Options -Indexes @@ -26,6 +23,9 @@ Options +FollowSymLinks # Redirect requests to the front controller + # Use the front controller as a default handler + DirectoryIndex index.php + RewriteEngine On # Use separate front controller for the system installator @@ -40,6 +40,13 @@ Options +FollowSymLinks RewriteRule ^(.*)$ index.php [QSA,L] + + # There is no mod_rewrite in the system. For the root Mibew directory + # index_fallback.php should be loaded first to activate old-fashioned URLs. + # For all other directories index.php is just a directory index file. + DirectoryIndex index_fallback.php index.php + + # Deny access to internal system files Deny from all diff --git a/src/mibew/index_fallback.php b/src/mibew/index_fallback.php new file mode 100644 index 00000000..d1746d59 --- /dev/null +++ b/src/mibew/index_fallback.php @@ -0,0 +1,23 @@ +