This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
forked from jkk/eidogo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
37 lines (32 loc) · 1.4 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
#Options -MultiViews
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.eidogo\.com [NC]
RewriteRule (.*) http://eidogo.com$1 [R=301,L]
RedirectMatch 404 /\\.svn(/|$)
RedirectMatch 404 /\\.git(/|$)
# Here we assume certain MSIE 6.0 agents are from linkscanner
# redirect these requests back to avg in the hope they'll see their silliness.
# Taken from http://www.pixelbeat.org/docs/web/avg_linkscanner.html
RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6.0; Windows NT 5.1; SV1.$" [OR]
RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6.0; Windows NT 5.1;1813.$"
RewriteCond %{HTTP_REFERER} ^$
RewriteCond %{HTTP:Accept-Encoding} ^$
RewriteRule ^.* http://www.avg.com/?LinkScannerSucks [R=307,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^source$ /source.phtml [L,NE]
RewriteRule ^upload$ /upload.phtml [L,NE]
RewriteRule ^games$ /games.phtml [L,NE]
RewriteRule ^problems$ /problems.phtml [L,NE]
RewriteRule ^problems/(.*)$ /problems.phtml?path=$1 [L,NE]
RewriteRule ^tourney$ /tourney.phtml [L,NE]
RewriteRule ^ff-extension$ /ff_extension.phtml [L,NE]
RewriteRule ^(kjd)$ /#$1 [R,L,NE]
RewriteRule ^(search)$ /#$1 [R,L,NE]
RewriteRule ^(gnugo.*)$ /#$1 [R,L,NE]
RewriteRule ^(blank)$ /#$1 [R,L,NE]
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
AddHandler application/x-httpd-php .css .js
php_value auto_prepend_file backend/content_header.php
php_value include_path .:..:../..