F fabxhost Active Member 90 2015 10 20 May 22, 2015 #1 Need Http to https redirection and domain is with ssl validated: example.com ssl wont work with www Please help me with htaccess Rewrite rule must include redirection for all paths and folders Last edited: May 22, 2015
Need Http to https redirection and domain is with ssl validated: example.com ssl wont work with www Please help me with htaccess Rewrite rule must include redirection for all paths and folders
M Mar$hall Active Member 392 2012 103 295 May 22, 2015 #3 try Code: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] source: http to https through .htaccess - Stack Overflow
try Code: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] source: http to https through .htaccess - Stack Overflow
F fabxhost Active Member 90 2015 10 20 May 22, 2015 #4 didnt worked i am using RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.fabxhost\.com [NC] RewriteRule ^(.*)$ https://fabxhost.com/$1 [L,R=301] its redirecting http://www to https:// perfectly but i want http:// to https:// .... for non-www this also
didnt worked i am using RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.fabxhost\.com [NC] RewriteRule ^(.*)$ https://fabxhost.com/$1 [L,R=301] its redirecting http://www to https:// perfectly but i want http:// to https:// .... for non-www this also