Mobile app version of vmapp.org
Login or Join
Pierce454

: 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

@Pierce454

Posted in: #AmazonAws #Apache #Dns

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

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]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme