Previous Next

Thread: Redirecting HTTPS from https://domain.com to https://www.domain.com

Last post 08-18-2008 11:20 PM by joelangley. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-14-2008, 1:03 PM

    • bostonnole
    • Not Ranked
    • Joined on 01-22-2004, 4:33 PM
    • Massachusetts
    • Posts 2

    Redirecting HTTPS from https://domain.com to https://www.domain.com

    Is there some way in IIS 6 (running on Windows 2003) to redirect all pages, including parameters, from https://domain.com to https://www.domain.com?

    None SSL redirects are working fine.

    When a user attemps https://domain.com they get a warning about the certificate not matching the name of the site.

    "The name on the security certificate is invalid or does not match the name of the site"

    I have created a seperate web site for "domain.com" and I have an SSL certificate for "domain.com". This site is setup to do a permanent redirect to the www.domain.com site.  As I indicated above, non-ssl redirects work fine.  Just the SSL redirects do not.

  • 08-14-2008, 1:19 PM In reply to

    Re: Redirecting HTTPS from https://domain.com to https://www.domain.com

    Might be an easier way but I use an isapi filter: http://www.helicontech.com/isapi_rewrite/ this is free. From an SEO perspective you probably want a 301 to the browser instead of a redirect and you would need to add into your httpd.ini file the following:


    # 301 redirect from domain.com to www.domain.com
    RewriteCond Host: (?!www\.)(.*)
    RewriteCond METHOD GET|HEAD
    RewriteCond %HTTPS (on)|.*
    RewriteRule (.*) http(?2s:)\://www.$1$3 [I,RP]

    As I said, this is the way I do it...others may have another option.

  • 08-14-2008, 3:15 PM In reply to

    • bostonnole
    • Not Ranked
    • Joined on 01-22-2004, 4:33 PM
    • Massachusetts
    • Posts 2

    Re: Redirecting HTTPS from https://domain.com to https://www.domain.com

    I am hoping someone will respond with a way to do this using an IIS configuration.

  • 08-18-2008, 11:20 PM In reply to

    Re: Redirecting HTTPS from https://domain.com to https://www.domain.com

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/41c238b2-1188-488f-bf2d-464383b1bb08.mspx?mfr=true

Page 1 of 1 (4 items)
Page view counter