: How do I set up an `A record`? I have Apache installed on an EC2 instance (with an Elastic IP). I successfully used NameCheap's DNS tool to configure routing of www.mydomain.com and mydomain.com
I have Apache installed on an EC2 instance (with an Elastic IP). I successfully used NameCheap's DNS tool to configure routing of mydomain.com and mydomain.com traffic.
If I have a web application living at mydomain.com/MyApp, what steps do I take to route MyApp.mydomain.com traffic to mydomain.com/MyApp? I don't want it to be a redirect.
More posts by @Pierce454
1 Comments
Sorted by latest first Latest Oldest Best
I agree with @bybe . A 301 redirect in your .htaccess file would do the trick.
RewriteCond %{HTTP_HOST} ^myapp.domain.com
RewriteRule ^(.*)$ domain.com/myapp/ [R=301]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.