From 86085a0c317a670a4c577f833e136f490c46b92d Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 10 Sep 2014 10:56:06 +0000 Subject: [PATCH] Force Mibew to work without mod_rewrite --- src/mibew/.htaccess | 13 ++++++++++--- src/mibew/index_fallback.php | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 src/mibew/index_fallback.php 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 @@ +