-
Notifications
You must be signed in to change notification settings - Fork 4
/
.htaccess
41 lines (34 loc) · 1018 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# dnwr#_ip 46.203.16.68
# dnwr_host flexo.dyndns-free.com
#
# Charset and close firectory files list
#
Options -Indexes +FollowSymLinks
AddDefaultCharset UTF-8
#
# PHP Magic quotes off
#
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_sybase off
php_flag register_globals off
</IfModule>
#
# Set rewrite rules
#
<IfModule mod_rewrite.c>
RewriteEngine On
# Set next line to your CMS root - if not in subdir, then just /
#RewriteBase /
# Remove www. from URL (you can uncomment this)
#RewriteCond %{HTTP_HOST} ^www.(\S+)$
#RewriteRule ^(.*)$ http://%1/$1 [R,L]
# Rewrite all requests to admin section
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^(admin)(|/)$ index.php?/$1/ [L,QSA]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/?URL
RewriteRule .* index.php?/$0 [L,QSA]
</IfModule>