Subdomain redirects to different server, maintaining original URL

Posted by Jason Baker on Pro Webmasters See other posts from Pro Webmasters or by Jason Baker
Published on 2012-07-06T19:02:06Z Indexed on 2012/07/06 21:25 UTC
Read the original article Hit count: 267

Filed under:
|

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?

© Pro Webmasters or respective owner

Related posts about redirects

Related posts about subdomain