From 3d1e47bdf5095fd099018cf6991d0ca30c48bb73 Mon Sep 17 00:00:00 2001 From: Christiaan Goossens Date: Wed, 15 Mar 2017 13:44:32 +0100 Subject: [PATCH] Added .htaccess files --- .htaccess | 2 ++ public/.htaccess | 12 +++--------- 2 files changed, 5 insertions(+), 9 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..618291d --- /dev/null +++ b/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^$ /public [L] diff --git a/public/.htaccess b/public/.htaccess index c506092..4ec0df7 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,10 +1,4 @@ -RewriteEngine On - -# Some hosts may require you to use the `RewriteBase` directive. -# If you need to use the `RewriteBase` directive, it should be the -# absolute physical path to the directory that contains this htaccess file. -# -# RewriteBase / - +RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^ index.php [QSA,L] +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]