Announcement

Collapse
No announcement yet.

DNS URL redirection

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DNS URL redirection

    I have a client who has a hosted app at say app.companyname.com - from the website end this then redirects to companyname.com/app

    However, internal to their network how can I create a URL redirect? I have created a record for app. and internally it resolves, but of course the redirect does not work. Any ideas?

    Thanks!

  • #2
    Re: DNS URL redirection

    DNS cannot redirect URLs, only hostnames.

    You can create an A record for app.companyname.com and point it to the same IP address as companyname.com, and you can create a CNAME record pointing from one DNS hostname (app.companyname.com) to another (companyname.com), but you cannot redirect a hostname to "companyname.com/some_url", since the path behind the hostname isn't part of the DNS name.

    URL redirects are done by web servers. To redirect "app.company.com" to "company.com/app", a web server must be configured to serve the "app.company.com" site and respond with a 301 or 302 redirect message for any and all requests. The redirect response can point to any URL.

    Comment

    Working...
    X