+ Reply to Thread
Results 1 to 10 of 10

How can i redirect users from Specific Country?

This is a discussion on How can i redirect users from Specific Country? within the Scripts & Content Management forums, part of the Web Designing & Development category; How can i redirect users from Specific Country to a custom html page?...

Share/Bookmark
  1. #1
    Junior Member Array
    Join Date
    Oct 2009
    Posts
    1

    Default How can i redirect users from Specific Country?

    How can i redirect users from Specific Country to a custom html page?

  2. #2
    Administrator Array SticKer's Avatar
    Join Date
    May 2007
    Posts
    3,641

    Default Re: How can i redirect users from Specific Country?

    Quote Originally Posted by Alexey View Post
    How can i redirect users from Specific Country to a custom html page?
    You would need a good Geo Redirect scripts to do this for you.

    If you are using Apache take a look at MaxMind GeoIP Apache API.

    Example:

    Code:
    GeoIPEnable On
    GeoIPDBFile /path/to/GeoIP.dat
    
    # Redirect one country
    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CA$
    RewriteRule ^(.*)$ http://www.canada.com$1 [L]
    
    # Redirect multiple countries to a single page
    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CA|US|MX)$
    RewriteRule ^(.*)$ http://www.northamerica.com$1 [L]

  3. #3
    Senior Member Array AirForce1's Avatar
    Join Date
    Jun 2009
    Location
    ShoesBuyOnline.com
    Posts
    809

    Default Re: How can i redirect users from Specific Country?

    This might the script I really need but I think I might not have to priority to install the API on my hosting for my site is now on a sharing hosting.

    Best regards,

  4. #4
    Junior Member Array
    Join Date
    Oct 2009
    Posts
    5

    Default Re: How can i redirect users from Specific Country?

    Kindly contact your server administrator and provide the script. They will check the script and if it is feasible to run on the server then they will install it for you.
    [COLOR=RED]AccuWebHosting.Com - Windows Hosting Expert[/COLOR]
    [COLOR=Blue]ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups | Uptime Guarantee | Affiliates - $50 Per Sale | [/COLOR]Web Hosting Directory

  5. #5
    Member Array
    Join Date
    Sep 2009
    Posts
    74

    Default Re: How can i redirect users from Specific Country?

    there are so many genius on this site!!!
    Always make the best to be better, then why not pick TaylorMade R9 Super Tri Driver out of these fabulous golf club sets?

  6. #6
    Senior Member Array
    Join Date
    Sep 2009
    Posts
    152

    Default Re: How can i redirect users from Specific Country?

    You can get some good Geo Redirect scripts from the "12scripts" website.

  7. #7
    Member Array cpace1983's Avatar
    Join Date
    Mar 2010
    Location
    Montana
    Posts
    47

    Default Re: How can i redirect users from Specific Country?

    Another vote for MaxMind's Apache module- it's rock solid, and easy to add/remove countries! Plus, it's served via .htaccess, so it reduces the load on the server (in the event of a banned country), and it is rock solid.
    I am a Linux consultant, who offers Linux consulting services and Linux Server Installation services to clients.
    My wife is a Billings, MT photographer.

  8. #8
    Junior Member Array
    Join Date
    May 2010
    Posts
    13

    Default Re: How can i redirect users from Specific Country?

    thanks for the information.

  9. #9
    Super Moderator Array wired076's Avatar
    Join Date
    May 2007
    Posts
    685

    Default Re: How can i redirect users from Specific Country?

    Please make sure you let us know how you go with this as it will help others wanting to do a similar thing with their own site.
    I.T. Construct
    Web Hosting and Webmaster support/work is available.
    Email: admin@itconstruct.com.au

    Visit http://www.itconstruct.com.au
    Super Moderator of Webicy Forum.

  10. #10
    Member Array
    Join Date
    Nov 2010
    Posts
    94

    Default Re: How can i redirect users from Specific Country?

    thnx 4 sharing . man



+ Reply to Thread

Similar Threads

  1. Which is the most beautiful country?
    By ana14 in forum Entertainment
    Replies: 36
    Last Post: 01-04-2012, 08:22 AM
  2. Duplicate Content On Specific Domains
    By Sharingan in forum Google
    Replies: 6
    Last Post: 08-05-2011, 09:05 AM
  3. 301 Redirect.
    By bradchawla in forum Search Engine Optimization
    Replies: 6
    Last Post: 07-01-2009, 06:44 AM
  4. How to Redirect a Web Page
    By SticKer in forum Web & Server Administration
    Replies: 7
    Last Post: 11-04-2008, 04:28 AM
  5. .htaccess mod_rewrite 301 redirect help please?
    By Renegade in forum Web & Server Administration
    Replies: 0
    Last Post: 01-11-2008, 11:25 PM
SEO Forum | Web Hosting Forum | Websites For Sale |