Domain redirection based on IP/Geolocation using CDN

Soldato
Joined
19 May 2009
Posts
3,113
Location
Cannock
We have a site example.com hosted out of our data centre in the UK, but we're looking to leverage Azure CDN to have a point of presence in Australia. What we've been asked though is when a user in Australia attempts to access example.com they are to be redirected (based on IP/geolocation) to example.com.au, which is a cname of example.com. They're looking to improve the site's SEO basically.

Is this possible to do through Azure CDN alone through URL redirects/rewrites? I've looked into it, but can't find a way.

Any help or pointers would be much appreciated.
 
Permabanned
Joined
10 Feb 2011
Posts
151
Yes thats possible, not much expert in this one but I have noticed such site one good e.g is godaddy website
 
Soldato
Joined
9 Mar 2010
Posts
2,838
A cdn typically has a fixed domain - for example cdn.amazon.com.

Behind the scenes the system checks the originating IP and servers up the data from a local web server, basically doing a redirect from the original request which essentially invisible to the user.

For your example while you'd want to utilise a CDN behind the scene to speed up your web presence for Australian customers you'd still technically want to write logic into your site to do a physical redirect to the .au version of the website.

So, IP address range lookup and then redirect.

Just make sure you're doing the redirect based on a session/cookie and that the user can change to the international site. There's NOTHING worse that being stuck on the unloved child site of a corporation that has forgotten to update it.
 
Back
Top Bottom