Forum Moderators: phranque
I want to re-direct every user that visits my site .... [companynamezero.com...] from India to a subdomain called [in.companynamezero.com...] .
How can i technically achieve this?
Any help appreciated.
Cheers
Hope this helps
Dave A
Actually I still want all international visitors ( other than Indian visitors ) to go to [companynamezero.com...] when they type in that domain name.
ONLY all the Indian visitors should visit [in.companynamezero.com...] when they type [companynamezero.com...] which will have relevant content for Indian customers.
How will I get the re-direct detect that the user/Visitor is from India? And how accurate can i get here.
Thanks for any help here.
Yes you can do this , it will usually mean installing some software on your server to facilitate Geographical IP targeting. A good ASP programme that is use is called Activetarget ..all one word..
You can then set up a script setting conditioinal resposne along the lines of ..if visitor is from India then repsonse.redirect and specify your new domain.
If you decide to use that particular software sticky me and ill send you the code you need to customize.
David
RewriteEngine on
GeoIPEnable On
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^IN$
RewriteRule ^(.*)$ [in.companynamezero.com...] [L]
<edit>
this will work only if you create a virtual domain pointing to the same directory on your server
Thank you for the help.
this will work only if you create a virtual domain pointing to the same directory on your server
Could you please elaborate more on this. My web hosting account will be using cpanel and I will create a sub-domain there which says [in.companynamezero.com...] . how do I create a virtual domain and point it to the same directory?
Thank you for the help again
Cheers