DirectAdmin Manual

Helping you get the most out of DirectAdmin and your web!

Force HTTPS and choose www

Enable redirection only after a certificate has been issued for every name in use.

DirectAdmin redirect

  1. Open Account Manager → Domain Setup.
  2. Select the domain.
  3. Enable Force SSL with HTTPS redirect or Force Redirect.
  4. When available, choose www, non-www or keep the current host.
  5. Save and test several URLs.

DirectAdmin's server-level redirect is preferable to another .htaccess rule because it runs earlier and reduces conflicts.

www or non-www

Both are valid. Choose one canonical address and redirect the other to it. DNS and the certificate must cover both names when visitors may use both.

Redirect loops

Enforcing HTTPS simultaneously in DirectAdmin, WordPress, a plugin, a CDN and .htaccess can cause Too many redirects. Keep one primary rule and check the CDN's connection mode.

Test

  • http://example.com should reach the chosen HTTPS address.
  • http://www.example.com should reach the same canonical version.
  • The redirect must preserve a path such as /contact.
  • Administration and forms must work without a loop.

public_html and private_html

Store the website for both HTTP and HTTPS only in public_html. On Euroserver systems, private_html is a symbolic link to public_html and is no longer used separately. Do not maintain a second website copy there.

Back to chapter overviewContact Euroserver support