2

I would like to load different content within Index page based on Country IP range. Is it possible ?

Blazer
  • 306
  • 4
  • 16
  • 1
    Yes you can do that. See: http://stackoverflow.com/questions/2439308/redirect-a-specific-ip-address-to-a-special-page-of-my-homepage-with-htaccess – Erik Schierboom Apr 08 '13 at 14:16
  • I don't want to redirect to another page but to load different content. So for example when IP 122.25.67.156 access my site, the url will be mysite.com but with different content. – Blazer Apr 08 '13 at 14:20
  • 1
    @Blazer then what's `mod_rewrite` for? – bahrep Apr 08 '13 at 14:39
  • If you dont want to use apache `mod_rewrite` , i suggest you to do this on server side. Get IP address of client and send it to ajax as `json`. Than you can change any content of any page. – alioguzhan Apr 08 '13 at 14:53
  • I'm really new into this. Using mod_rewrite means redirect ? I need the easiest way to change content of home index page if certain IP's access my site. – Blazer Apr 08 '13 at 15:00
  • If you use a `RewriteRule` without the `R` flags, it will create an internal redirect that is not visible to the user. – nwellnhof Apr 08 '13 at 19:43

0 Answers0