Mobile app version of vmapp.org
Login or Join
Shakeerah822

: 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

@Shakeerah822

Posted in: #Redirects #Subdomain

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?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Shakeerah822

2 Comments

Sorted by latest first Latest Oldest Best

 

@Frith620

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)

10% popularity Vote Up Vote Down


 

@Goswami781

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!

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme