diff options
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..d025b2b --- /dev/null +++ b/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On +# Redirect /index.php to / (optional, but recommended I guess) +RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php +RewriteRule ^index.php/?(.*)$ $1 [R=301,L] + +# Run everything else but real files through index.php +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^(.*)$ index.php/$1?%{QUERY_STRING} [L] |