summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-02-26 17:13:13 +0100
committeremkael <emkael@tlen.pl>2016-02-26 17:18:02 +0100
commitd327af5f481454d8738ab413e2c16ad829bbf800 (patch)
tree8a1d06af2e70132077a6c08bf4823ecbb27d8fbf /http
parent0f69294121ee68616961af02bcfc0c7662cd3ba5 (diff)
* friendly URL support
Diffstat (limited to 'http')
-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]
+