malta
malta

Reputation: 858

DNS redirect of a url to another url

We are currently looking at identifying the best approach to carry out a redirection of a url folder to another url folder o a separate domain. We have tried a few options but have been unable to make this work. Any other redirection options such as apache, html etc are not possible. This url is only accessed through the browser by an application to download some files. This application cannot be changed but needs to download these files from another location.

Hence, we need to redirect the following:

https://sub1.domain1.com/xyz

to

https://sub2.domain2.com/abc/xyz

Any ideas how we can achieve this?

Note: we have full control of DNS of the domain1 and there are no plans to use this domain.

Upvotes: 0

Views: 3194

Answers (1)

Jonathon Reinhart
Jonathon Reinhart

Reputation: 137517

You can't do that with DNS alone. The DNS never sees the "path" part of the URL. You need a webserver aware of the situation who can provide a 302 redirect.

Upvotes: 1

Related Questions