hosting - DNS Changes: Pointing one subdirectory to another host -
short question: possible example.com points ip address, example.com/something points ip?
more details: example.com hosted client's host company. have designed new website them , host myself (by pointing ip mine). letting me know there used sub-directory application hosted under. take me while re-install application in new host, wondering if it'd possible serve request sub-directory through old host/ip.
that's not possible. resolving host (example.com) separate task (dns query) connecting http server (http connection) host points to. none of url, except hostname, queried via dns there no way dns can made behave differently based on other parts of url doesn't see it.
a subdomain part of hostname , that's why www.example.com , www1.example.com can point different addresses. if need have www.example.com/something go elsewhere, you'll need use http redirects.
Comments
Post a Comment