#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Redirect and show originating URL


    Is it possible to point/redirect from domain.com to newdomain.com and still show domain.com in the URL?

    I've tried with a-records, CNAME and redirects and all end up showing the destination URL in the browser.

    I know about frame redirects and was told this should be avoided.

    Thanks in advance
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    It is not possible. You could install a proxy server on domain.com and have it proxy the requests to newdomain.com. The user would see domain.com in their browser and all requests would still go through the domain.com server, but the logic would be executed by the server running newdomain.com.

    If both domains are on the same server you could configure your web server to serve both domains from the same document root.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0
    Originally Posted by E-Oreo
    It is not possible. You could install a proxy server on domain.com and have it proxy the requests to newdomain.com. The user would see domain.com in their browser and all requests would still go through the domain.com server, but the logic would be executed by the server running newdomain.com.

    If both domains are on the same server you could configure your web server to serve both domains from the same document root.
    Thank you, E-Oreo, for your excellent reply!

IMN logo majestic logo threadwatch logo seochat tools logo