-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 4 replies
- 0 views
-
Paint.NET can finally be downloaded from the "right" place
By Usama Jawad96,
- 19 replies
- 1 view
-
Google migrates Google Chat to a new domain for faster access
By Aditya Tiwari,
- google chat
- (and 2 more)
- 1 reply
- 0 views
-
- 3 replies
- 0 views
-
- 0 replies
- 1 view
-
Question
slax
Hi
I want to redirect my primary domain to https (http://www.website.com to https://www.website.com) and exclude all sub domains. (http://xyz.website.com to remain as http://xyz.website.com)
I have been on google for too long and couldnt find the right solution, please help
My .htaccess file
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
Link to comment
https://www.neowin.net/forum/topic/1271962-htaccess-redirect-primary-domain-from-http-to-https-but-exclude-all-subdomains/Share on other sites
3 answers to this question
Recommended Posts