Mercurial > hg > ywww
annotate index.php @ 14:1477b5e6dd16 testing
use test subdirs for countries
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 19 Feb 2017 16:17:25 +0000 |
parents | 5f4560ac65b7 |
children |
rev | line source |
---|---|
0 | 1 <?php |
2 $country_code = apache_note("GEOIP_COUNTRY_CODE"); | |
3 switch($country_code){ | |
4 /* case "CA": | |
5 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
6 Header ("Location: http://test.markup.co.uk/ywww/ca/" ); |
0 | 7 break; |
8 case "DE": | |
9 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
10 Header ("Location: http://test.markup.co.uk/ywww/de/" ); |
0 | 11 break; |
12 case "FR": | |
13 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
14 Header ("Location: http://test.markup.co.uk/ywww/fr/" ); |
0 | 15 break; |
16 case "GB": | |
17 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
18 Header ("Location: http://test.markup.co.uk/ywww/uk/" ); |
0 | 19 break; |
20 case "US": | |
21 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
22 Header ("Location: http://test.markup.co.uk/ywww/us/" ); |
0 | 23 break; */ |
24 default: | |
25 Header( "HTTP/1.1 301 Moved Permanently" ); | |
14
1477b5e6dd16
use test subdirs for countries
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
26 Header ("Location: http://test.markup.co.uk/ywww/us/" ); |
0 | 27 break; |
28 } | |
29 ?> | |
30 <html> | |
31 <head> | |
32 <title>YourNextRead: Book Recommendations</title> | |
33 | |
34 <META NAME="Description" CONTENT="YourNextRead recommends your next book. YourNextRead provides a book recommendation system showing aggregated book reviews, updated by real peoples opinions, in a simple visual map, helping you to decide 'What Should I Read Next?'. Perfect for both bookworms and casual readers!"> | |
35 <meta name="google-site-verification" content="0XCtbGM_bvOH363P2XE6DVjh-APTICOREquY8F38T84" /> | |
36 </HEAD> | |
37 <body> | |
38 </body> | |
39 |