-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 0 views
-
Google says Chrome is about to get a lot more secure with default HTTPS, download warnings
By hellowalkman,
- 4 replies
- 4 views
-
- 1 reply
- 8 views
-
Google Cloud blocks largest DDoS attack ever, beating Cloudflare's previous record with ease
By Usama Jawad96,
- google cloud
- (and 14 more)
- 4 replies
- 4 views
-
Microsoft is finally offering Windows Update Catalog over an HTTPS connection
By hellowalkman,
- microsoft update catalog
- https
- (and 4 more)
- 15 replies
- 4 views
-
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