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]