Server-wide Redirects

Discussion in 'Installation/Configuration' started by Nilpo, May 6, 2014.

  1. Nilpo

    Nilpo Member HowtoForge Supporter

  2. srijan

    srijan New Member HowtoForge Supporter


    I am considering that you have installed a Perfect server guide with ISPConfig.

    Goto ISPConfig webinterface with admin user
    -->Sites-->Alieas Domain for website.
  3. Nilpo

    Nilpo Member HowtoForge Supporter

    I'm not adding a domain. Can you expand on that?

    By server-wide, I mean that the redirect should affect every domain in the system.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This part is a normal http to https redirect for the ispconfig vhost. so you have to add a rewrite rule in the ispconfig vhost or yu can try to add a .htaccess file with the redirect in /usr/local/ispconfig/interface/web/

    For this you can e.g. modify the vhost master template in /usr/local/ispconfig/server/conf/ (copy the modified version to conf-custom) where you add a server alias for plus some rewrite code for the redirect.

Share This Page