quick question about domain alias / redirect

Discussion in 'General' started by nhybgtvfr, Feb 17, 2017.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    Hi,
    hopefully this is an easy one,
    i have a domain 'A', and a domain 'B'
    in the web folder of 'A' is a folder 'c'.
    basically, what i want is when a user types in the url for 'B', the browser takes them to the location http://A/c/ but continues to display the url as 'B'

    is this possible? i've tried various redirect options on an aliasdomain, but they keep changing the displayed url to 'A' or 'A'/'c'. do i need to make it a full website and then use the control panel redirection options?, or redirect it in .htaccess?

    thanks,
    lee.
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You can create B as a normal vhost, and in custom apache directives set it to proxy to http://A/c/. A good example of a similar reverse proxy setup was posted in the last couple days by @Rein van 't Veer, I forget exactly which forum/post it was in.
     

Share This Page