Redirect subdomain to external URL

Discussion in 'General' started by Dennis_sp, Dec 6, 2019.

  1. Dennis_sp

    Dennis_sp Member

    I want to redirect my subdomain abc.mydomain.com to another URL (https://totallydifferentdomain.com/path/folder/) not owned by me or hosted on ISPconfig. How can i do this?

    I was thinking of using an alias domain but that points to another website hosted on ISPconfig.
     
  2. Steini86

    Steini86 Active Member

    Create the website in ispconfig, then go to the redirect tab and choose your options
     
  3. ahrasis

    ahrasis Well-Known Member

    Set the subdomain at that url webserver and its A record pointing to that webserver?
     
  4. Dennis_sp

    Dennis_sp Member

    It's working! Does anyone know how i can redirect where the URL doesn't change? So the address bar will display the original typed in URL?
     
  5. ahrasis

    ahrasis Well-Known Member

    This is not a redirect to a url but more like using the same path instead, so I think will depends on the code of your website software.

    That also depends on how you made it working.
     
  6. Steini86

    Steini86 Active Member

    You can use mod_rewrite (depends on (configuration of) your software, if this will work / is allowed by restrictions)
    or mod_proxy. However, this is not a simple redirect, but all the traffic will go over your server.
     

Share This Page