Project

General

Profile

1
#### URL resolution
2

    
3
DirectorySlash on
4
DirectoryIndex index.php
5

    
6
### mod_rewrite
7

    
8
RewriteEngine on
9
RewriteOptions inherit
10
RewriteBase /
11

    
12
# remove www subdomain
13
RewriteCond %{HTTP_HOST} ^www\.(.*)$
14
RewriteRule ^.*$ http://%1/$0 [redirect]
15

    
16
# don't rewrite existing paths
17
RewriteCond %{REQUEST_FILENAME} -d [ornext]
18
RewriteCond %{REQUEST_FILENAME} -f [ornext]
19
RewriteCond %{REQUEST_FILENAME} -l
20
RewriteRule ^.*$ - [last]
21

    
22
# non-filesystem paths
23
ErrorDocument 404 /index.php
(1-1/5)