The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect certain urls to another server without changing domain

Discussion in 'General Discussion' started by DreamPhysix, Oct 15, 2011.

  1. DreamPhysix

    DreamPhysix Well-Known Member

    Joined:
    Sep 30, 2009
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    I have a couple urls (subdomain.domain.tld and domain2.tld/dir) that I currently have set to redirect to another server (server2.domain.tld(/dir)). The second server is running lighttpd and I would like the domain name not to change after the redirect. I think it involves mod_rewrite or mod_proxy, but wasn't sure how to go about doing this. Any ideas? e.g.:
    http://subdomain.domain.tld => http://server2.domain.tld/dir (url is still http://subdomain.domain.tld)
    http://domain2.tld/dir2 => http://server2.domain.tld/dir2 (url is still http://domain2.tld/dir2)
     
Loading...

Share This Page