Mercurial > hg > ywww
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:b78209a5fba1 | 14:1477b5e6dd16 |
---|---|
1 <?php | 1 <?php |
2 $country_code = apache_note("GEOIP_COUNTRY_CODE"); | 2 $country_code = apache_note("GEOIP_COUNTRY_CODE"); |
3 switch($country_code){ | 3 switch($country_code){ |
4 /* case "CA": | 4 /* case "CA": |
5 Header( "HTTP/1.1 301 Moved Permanently" ); | 5 Header( "HTTP/1.1 301 Moved Permanently" ); |
6 Header ("Location: http://www.yournextread.com/ca/" ); | 6 Header ("Location: http://test.markup.co.uk/ywww/ca/" ); |
7 break; | 7 break; |
8 case "DE": | 8 case "DE": |
9 Header( "HTTP/1.1 301 Moved Permanently" ); | 9 Header( "HTTP/1.1 301 Moved Permanently" ); |
10 Header ("Location: http://www.yournextread.com/de/" ); | 10 Header ("Location: http://test.markup.co.uk/ywww/de/" ); |
11 break; | 11 break; |
12 case "FR": | 12 case "FR": |
13 Header( "HTTP/1.1 301 Moved Permanently" ); | 13 Header( "HTTP/1.1 301 Moved Permanently" ); |
14 Header ("Location: http://www.yournextread.com/fr/" ); | 14 Header ("Location: http://test.markup.co.uk/ywww/fr/" ); |
15 break; | 15 break; |
16 case "GB": | 16 case "GB": |
17 Header( "HTTP/1.1 301 Moved Permanently" ); | 17 Header( "HTTP/1.1 301 Moved Permanently" ); |
18 Header ("Location: http://www.yournextread.com/uk/" ); | 18 Header ("Location: http://test.markup.co.uk/ywww/uk/" ); |
19 break; | 19 break; |
20 case "US": | 20 case "US": |
21 Header( "HTTP/1.1 301 Moved Permanently" ); | 21 Header( "HTTP/1.1 301 Moved Permanently" ); |
22 Header ("Location: http://www.yournextread.com/us/" ); | 22 Header ("Location: http://test.markup.co.uk/ywww/us/" ); |
23 break; */ | 23 break; */ |
24 default: | 24 default: |
25 Header( "HTTP/1.1 301 Moved Permanently" ); | 25 Header( "HTTP/1.1 301 Moved Permanently" ); |
26 Header ("Location: http://www.yournextread.com/us/" ); | 26 Header ("Location: http://test.markup.co.uk/ywww/us/" ); |
27 break; | 27 break; |
28 } | 28 } |
29 ?> | 29 ?> |
30 <html> | 30 <html> |
31 <head> | 31 <head> |