: Subdomain redirects to different server, maintaining original URL I just took over the webmaster position in my organization, and I'm trying to set up a development environment separate from the
I just took over the webmaster position in my organization, and I'm trying to set up a development environment separate from the production environment. The two environments are hosted with different companies, both on shared hosting plans.
Right now, production is at domain.com and development is at domain2.com
What I want is to direct my development team to dev.domain.com
More importantly, I don't want the URL to change from dev.domain.com back to domain2.com, but I also be responsive to page changes. For example, if my dev team navigates from dev.domain.com to a page (called "page"), I'd like the URL to show as dev.domain.com/page
Is this possible, or am I just dreaming?
More posts by @Shakeerah822
2 Comments
Sorted by latest first Latest Oldest Best
Just create a subdomain and point it at a folder in your website.
EG, dev.domain.com can easily map to domain.com/developer/ but displays as you require.
EDIT
Depending on what hosting you have (shared or VPS/Dedicated and therefore access to ISS) you can map or use an alias to do what you're after (AKA masking). This should be fine for development site as you won't be penalized by Google since it's not intended for the public. (Thank you CJK)
If I understand your problem correctly.
You will need access to Domain.com's DNS. In Domain.com's DNS, create a A (Host) record that points to domain2.com's IP address and name it dev. Once it's propagated you should be able to go to dev.domain.com which will be your dev site.
Good luck!
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.