Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice