Results 1 to 4 of 4
  1. #1
    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

  2. #2
    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.

  3. #3
    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

  4. #4
    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

  1. Fordward specific port http request to https
    By complexnumber in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-18-2007, 05:51 PM
  2. https://www.pay-ace.com/
    By cavalry in forum Ecommerce Hosting & Discussion
    Replies: 7
    Last Post: 01-09-2005, 12:53 PM
  3. Stop CPanel from adding Cpanel login when adding user
    By AlexNY in forum Hosting Software and Control Panels
    Replies: 2
    Last Post: 05-25-2004, 03:18 AM
  4. https / SSL
    By sigmund in forum Hosting Software and Control Panels
    Replies: 4
    Last Post: 02-10-2003, 03:29 PM
  5. how to use https, new to ssl
    By rhytha in forum Hosting Security and Technology
    Replies: 1
    Last Post: 10-27-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •