summaryrefslogtreecommitdiff
path: root/http/.htaccess
diff options
context:
space:
mode:
Diffstat (limited to 'http/.htaccess')
-rw-r--r--http/.htaccess10
1 files changed, 10 insertions, 0 deletions
diff --git a/http/.htaccess b/http/.htaccess
new file mode 100644
index 0000000..77ee952
--- /dev/null
+++ b/http/.htaccess
@@ -0,0 +1,10 @@
+RewriteEngine On
+
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
+
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^(.*)$ /index.php/$1/ [L]
+