0
|
1 <?php
|
20
|
2 try {$country_code = $_SERVER["GEOIP_COUNTRY_CODE"];
|
|
3 } catch(Exception $e) { $country_code = "US" ; }
|
0
|
4 switch($country_code){
|
20
|
5 case "CA":
|
0
|
6 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
7 Header ("Location: http://www.yournextread.com/ca/" );
|
|
8 break;
|
|
9 case "DE":
|
|
10 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
11 Header ("Location: http://www.yournextread.com/de/" );
|
|
12 break;
|
|
13 case "FR":
|
|
14 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
15 Header ("Location: http://www.yournextread.com/fr/" );
|
|
16 break;
|
|
17 case "GB":
|
|
18 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
19 Header ("Location: http://www.yournextread.com/uk/" );
|
|
20 break;
|
|
21 case "US":
|
|
22 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
23 Header ("Location: http://www.yournextread.com/us/" );
|
20
|
24 break;
|
0
|
25 default:
|
|
26 Header( "HTTP/1.1 301 Moved Permanently" );
|
|
27 Header ("Location: http://www.yournextread.com/us/" );
|
|
28 break;
|
|
29 }
|
|
30 ?>
|
|
31 <html>
|
|
32 <head>
|
|
33 <title>YourNextRead: Book Recommendations</title>
|
|
34
|
|
35 <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!">
|
|
36 <meta name="google-site-verification" content="0XCtbGM_bvOH363P2XE6DVjh-APTICOREquY8F38T84" />
|
|
37 </HEAD>
|
|
38 <body>
|
19
|
39 <script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US&adInstanceId=322bafc0-69fa-4664-8e1c-0b9159259748"></script>
|
0
|
40 </body>
|
|
41
|