Revert "More structure"

This commit is contained in:
Nicolas
2014-10-17 14:41:15 +02:00
parent dcc07ed47c
commit b635eaa507
28 changed files with 52 additions and 226 deletions

View File

@@ -1,11 +1,12 @@
# Mod rewrite
RewriteEngine On
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(/$|\.)
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
# Route all requests to index.php unless real file or folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Disallow directory listing
Options -Indexes
RewriteRule /(.*)$ /$1 [L]