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
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
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?
 

wattie

Verified User
Joined
May 31, 2008
Messages
981
Location
Bulgaria
The HTTP->HTTPS redirection should be done the following way:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 

chunguy

Verified User
Joined
Nov 15, 2005
Messages
7
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.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,818
Location
GMT +7.00
Directadmin add redirects HTTP -> HTTPS into a virtual host directly, it does not modify .htaccess.
 
Top