#1
  1. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Dec 2009
    Location
    Earth
    Posts
    191
    Rep Power
    21

    Question Really dificult problem on site I cannot solve?


    Hi all, I have a UK and USA based website but sometimes when i want to visit a USA page to work on the page redirects me back to the UK homepage and sometimes it lets me visit that USA url.

    When i scan the urls in the USA to create a USA sitemap it states object temporary moved on all USA urls, i do have user IP address tracking on site.

    I wanted to divert users who use Google.com when visiting from a UK location back to the UK equivalent of that USA page, but i cannot fathom how i am supposed to work on the USA site thereafter due to ip mapping and being based in the UK?

    I don't understand how i am supposed to fix this, assuming it is possible. Hoping someone who is seo savvy can offer some insight, i also don't understand also why sometimes it sends me to the uk homepage and sometimes it lets me visit the USA?

    Site is uk.reviewanygame(dot).com UK section
    reviewanygame(dot)com USA section

    Would love some advice as to how to fix this.
    Last edited by artofmagick; Jan 11th, 2014 at 10:47 AM.
  2. #2
  3. the mango demon
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Nov 2009
    Location
    New Delhi
    Posts
    614
    Rep Power
    396
    Use a US proxy. It would treat you as a US visitor. It would be nice to invest in a private proxy. Those are not very costly.
    Or add an exception in your IP filtering that allows you to work irrespective of the IP mapping. e.g I would have standalone page that creates a cookie. If that cookie is present I would instruct my IP mapping to override itself. It involves a little overhead for the website as a whole but solves your problem. It can be removed when you no longer need it.

    Comments on this post

    • artofmagick agrees
  4. #3
  5. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Dec 2009
    Location
    Earth
    Posts
    191
    Rep Power
    21
    Thanks mate, would you happen to know a site which explains how i would add the UK url to the source of the USA, and vice versa, so that it sends the redirect when the UK user visits a usa page.

    From what i understand, i need to place the UK url in the source code of the USA, and the USA on the UK, so if a visitor clicks a USA url in google.com on a UK ip, it redirects them to the UK version of that page?

    Trying to fathom how and where i place this in the source coding of the pages.
  6. #4
  7. the mango demon
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Nov 2009
    Location
    New Delhi
    Posts
    614
    Rep Power
    396
    How are you doing the IP mapping currently. Is it using some third party service or did you write up the code?
    I may help you better if I know that.
  8. #5
  9. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Dec 2009
    Location
    Earth
    Posts
    191
    Rep Power
    21
    I actually got a webdesigner to do it, but will be able to find out on monday, i did speak with someone on the coding forums on webmasters who gave me a code to look at, will be checking to see if this will work when i speak with them.

    This is the code i was presented with.

    Here's the script that you could use at the top of each page- but you have to add other bits like the country determination and the redirection:



    <?php
    // this needs to be right at the top of any page being created
    $current_domain
    = $_SERVER['DOCUMENT_ROOT'];
    $request_uri
    = $_SERVER['REQUEST_URI'];
    $query_string
    = $_SERVER['QUERY_STRING'];

    $uk_domain
    ="uk(dot)reviewanygame.com";
    $us_domain
    ="reviewanygame(dot)com";

    if($_current_domain == $us_domain){ $other_domain = $uk_domain;}
    else{ $other_domain = $us_domain;}

    $uk_url
    ="http://". $uk_domain."/".$request_uri;
    $us_url
    ="http://". $us_domain."/".$request_uri;

    $other_url
    ="http://". $other_domain."/".$request_uri;
    $uk_url
    ="http://". $uk_domain."/".$request_uri;
    $us_url
    ="http://". $us_domain."/".$request_uri;
    if($query_string){
    $other_url
    = $other_url."?".$query_string;
    $uk_url
    = $uk_url."?".$query_string;
    $us_url
    = $us_url."?".$query_string;
    }

    // Use $uk_url and $us_url in the links to US and UK version at the top of the page, where you use the flags
    // You figure out how to do it - likely in the template you need to use
    /* <a href="<?php echo $us_url; ?>" title="US"><imgsrc="/images/icons/flag_us.png"></a>*/
    /* <a href="
    <?php echo $uk_url;?>" title="UK"><imgsrc="/images/icons/flag_uk.png"></a>*/

    //

    // determine country from whataver ip & country lookup you plan to use and see if redirection is needed .... default is for US.
    // if ($current_domain == $us_domain && $visitor_country == "UK" ) { redirect to $uk_url - preferably by javascript, not php }
    // if ($current_domain == $uk_domain && $visitor_country != "UK" ) { redirect to $us_url - preferably by javascript, not php }

    Last edited by artofmagick; Jan 12th, 2014 at 08:26 AM.

Similar Threads

  1. Plz Someone Solve My Problem!!!!!
    By aaronsmith2011 in forum Google Optimization
    Replies: 14
    Last Post: Apr 6th, 2011, 07:39 AM
  2. If you come across this problem, how will you solve it?
    By skila in forum Search Engine Optimization
    Replies: 2
    Last Post: Apr 29th, 2009, 10:35 PM
  3. Please help me,how to solve these problem?
    By skila in forum Search Engine Optimization
    Replies: 4
    Last Post: Apr 17th, 2009, 01:12 AM
  4. Help with problem we cannot solve - $1000
    By UriGeler in forum Google Optimization
    Replies: 9
    Last Post: May 16th, 2008, 08:35 PM
  5. Can you solve this problem?
    By vinod2005 in forum Google Optimization
    Replies: 5
    Last Post: Dec 29th, 2004, 04:28 AM

IMN logo majestic logo threadwatch logo seochat tools logo