forked from leftlogic/fullfrontal2010
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
52 lines (40 loc) · 1.53 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
<IfModule mod_rewrite.c>
# $Id: .htaccess,v 1.3 2006/11/09 09:08:14 remy Exp $
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteBase /
# banning idiots
# Deny from 71.120.197.95
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{HTTP_USER_AGENT} rv:1\.(([1-8]|9pre|9a|9b[0-4])\.[0-9.]+).*Gecko
#RewriteRule .* - [T=application/xhtml+xml]
#RewriteRule .* %1.html [L]
#RewriteRule ^(.*)$ /index.php?request=$1&ct=xhtml [T=application/xhtml+xml,L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{HTTP_USER_AGENT} Gecko/(\d{10})(?!.*Opera)
#RewriteCond %1 <2008032619
#RewriteRule .* - [T=application/xhtml+xml]
# redirect .co.uk
RewriteCond %{HTTP_HOST} fullfrontal.org$ [NC]
RewriteRule ^(.*)$ http://new.full-frontal.org/$1 [R=301,L]
# strip www. from the domain
RewriteCond %{HTTP_HOST} ^www\.full-frontal\.org$ [NC]
RewriteRule ^(.*)$ http://new.full-frontal.org/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^full-frontal\.org$ [NC]
RewriteRule ^(.*)$ http://new.full-frontal.org/$1 [R=301,L]
# used when site is down or making significant upgrades
# RewriteCond %{REQUEST_FILENAME} images
# RewriteRule .* - [L]
# RewriteRule .* down.html
# RewriteCond "%{REQUEST_FILENAME}.php" -f
# RewriteRule ^(.*)$ /$1.php [L]
#
# RewriteCond "%{REQUEST_FILENAME}.html" -f
# RewriteRule ^(.*)$ /$1.html [L]
# if the file or directory don't exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?request=$1 [QSA,L]
</IfModule>