Route disabled website to main website

Discussion in 'Installation/Configuration' started by Gijs, Dec 27, 2013.

  1. Gijs

    Gijs New Member


    I am not sure how to do that but when I disable a website, it is redirected to the default website and it shows the default website, but every link is broken then because it holds the link in the browser.

    Is there a way to solve this that it really redirects to the main website or maybe that all the links are still working? I don't know how to do that.

  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

  3. Gijs

    Gijs New Member

    Thanks for your response.
    I know that great functionality but I want to route "all" traffic to another website or just so that the links works in that website.

    Because also subdomains from every website that are not recognized by ISPConfig are redirected and also trying the direct IP-address.

    Any idea how to solve that?
    Thanks again.
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You could try putting a RewriteRule in the default vhost that is used if none of the other vhosts is matched.
    You can see which one that is by typing
    apache2ctl -t -D DUMP_VHOSTS

    In that file put somthing like this in the virtualhost section:
    RewriteEngine On
    RewriteRule ^(.*)$$1 [R,L,QSA]
    I hope this is what you meant.
  5. Gijs

    Gijs New Member

    Great, exactly what I wanted! :)

Share This Page