Search code examples
amazon-ec2pleskamazon-route53

Redirect a website url to another website url - GoDaddy


I have a domain let say xyz.com, and I have an internal URL like this, xyz.com/testUrl. I need to redirect this URL (xyz.com/testUrl) to another web site URL.(which is URL like this ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com:3001/employee).

Now, whenever someone hits xyz.com/testUrl , he should be redirected to ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com:3001/employee.

I am using goDadddy hosting.


Solution

  • Just create .htaccess file in web root of xyz.com with content:

    Redirect 302 /testUrl xxx.compute-1.amazonaws.com:3001/employee