How DirectAdmin redirect http to https?

chunguy

Verified User
Joined
Nov 15, 2005
Messages
7
Hello,
I've activate https on one of my domains but my friendly URLs, based on Rewrite Rules, are not working not.
I suppose apache is rewriting complete URL to redirect me to https but I don't know how.

Thanks
 
Hello,

What do you have in .htaccess? What is your domain's name? What do you have in error logs for the specific virtual host?
 
The HTTP->HTTPS redirection should be done the following way:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
I've done https redirection on DirectAdmin Panel. I can't find where directadmin write rules, because .htaccess is empty. I think Directadmin is overwriting or skipping my rules.
 
Directadmin add redirects HTTP -> HTTPS into a virtual host directly, it does not modify .htaccess.
 
Back
Top