Reputation: 43
I have domain setup like http://www.example.com/in
which is a wordpress multisite setup and hosted on a AWS EC2 instance.
I have to make another similar setup with url http://www.example.com/uk
but on another EC2 instance.
The domain www.example.com
is routed to only one IP of first instance.
Can anyone advise on how I should setup this routing to make this scenario on Amazon Route 53?
Upvotes: 4
Views: 1332
Reputation: 2044
Assuming you are serving your site using apache
you can add a .htaccess
rule on the instance hosting www.example.com to redirect www.example.com/uk traffic to another ip
address.
This will mean you rely on www.example.com
to redirect traffic for www.example.com/uk
. In the event the instance running www.example.com
were to become unavailable, www.example.com/uk
would become inaccessible.
Alternatively, you can setup a subdomain
in Route53
with the following entry
uk.example.com
1.2.3.4
This will mean that www.example.com/uk will need to be accessed using uk.example.com
not www.example.com/uk
Upvotes: 2