So, I'm setting up a new potentially high traffic site that's made up of several simple static pages. We want to host it as efficiently as possible, as we're both on a non-existent budget and may have to deal with traffic spikes, so have been thinking CloudFlare, AWS S3/CloudFront, or some similar service.
However, the catch is we need the root page /
to redirect to /ccTLD
, for example: redirect to /us
for U.S. visitors or /au
for Australian visitors.
Does anyone have any ideas on how we can best approach this? So far I'm thinking either we have to resort to using JavaScript which looks dodgy, or simply pushing / requests through to a VPS or EC2 instance, which creates a bottleneck I'd rather avoid.