Results 1 to 4 of 4
-
08-24-2009, 02:58 PM #1Junior Guru Wannabe
- Join Date
- Jun 2005
- Location
- Argentina
- Posts
- 36
Adding www to an https:// request
Hi there.
After googling a lot for an answer, I come here to the source for help.
Does anybody knows how to make https://somedomain.com to redirect thru .htaccess to https://www.somedomain.com?
All I have so far is the non-ssl way, which is:
RewriteCond %{HTTP_HOST} ^somedomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.somedomain.com/$1 [L,R=301]
I need the same, but for https request.
My goal is to avoid people to think my website does not have a good certificate. You know what nice and scaring warnings browsers are showing to people nowadays...
Thanks in advance.
Gabriel
-
08-24-2009, 03:20 PM #2Web Hosting Master
- Join Date
- May 2002
- Location
- Raleigh, NC
- Posts
- 714
There isn't a way to do exactly what you want, because if the user is going to https://domain.com, the certificate must first be accepted (by the browser or user manually) before the redirect is seen by the browser. The only solution is to fix links to not link people to https://domain.com, and/or get a certificate issued for both www.domain.com and domain.com common names.
-
08-24-2009, 03:26 PM #3Danananana Danananana Batman!
- Join Date
- Dec 2008
- Location
- Florida
- Posts
- 1,052
Getting a wildcard SSL will solve this, as it allows for
*.domain.com
So you could have as many sub-domains or www's as you'd like in front of it.Not sure what to put here :-P
-
08-24-2009, 03:32 PM #4Junior Guru Wannabe
- Join Date
- Jun 2005
- Location
- Argentina
- Posts
- 36
Thank you!
You are right
Problem solved (not as I wish, but it's solved!)
Thanks again
Gabriel
Similar Threads
-
Fordward specific port http request to https
By complexnumber in forum Hosting Security and TechnologyReplies: 5Last Post: 01-18-2007, 05:51 PM -
https://www.pay-ace.com/
By cavalry in forum Ecommerce Hosting & DiscussionReplies: 7Last Post: 01-09-2005, 12:53 PM -
Stop CPanel from adding Cpanel login when adding user
By AlexNY in forum Hosting Software and Control PanelsReplies: 2Last Post: 05-25-2004, 03:18 AM -
https / SSL
By sigmund in forum Hosting Software and Control PanelsReplies: 4Last Post: 02-10-2003, 03:29 PM -
how to use https, new to ssl
By rhytha in forum Hosting Security and TechnologyReplies: 1Last Post: 10-27-2002, 05:20 AM