The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Please advice needed SSL .htaccess

    Please advice needed SSL .htaccess

    Technical SEO Issues
    9 4 752
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Kotkov
      Kotkov last edited by

      Hi everyone, I recently installed verisign ssl. the idea to have page https://example.com

      all redirect from non-http to https work properly, but in IE whenever smbdy types https://www.example.com it shows the red screen with invalid certificate. If you click "proceed" - everything goes to normal page and on server redirect www to non-www seem to work fine. Is there way to get rid of the warning? Is it server or certificate issue?

      Here is the peice of code from htaccess. Please, advice needed!

      RewriteEngine On

      RewriteBase /RewriteCond %{HTTPS} !=on

      RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]

      RewriteRule ^index.php$ - [L]

      RewriteCond %{REQUEST_FILENAME} !-f

      RewriteCond %{REQUEST_FILENAME} !-d

      RewriteRule . /index.php [L]

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • mediabase
        mediabase last edited by

        Hi Serge, First of all I want to SSL error  is about the the certificate issue error & not of the server error.here I'm defining you the steps to fixed the error:

        FIXED: Here’s how I fixed this problem (you do not need to buy or install any 3rd party certificates or software), the certification error is nothing to worry about. You can fix the error by following these steps:
        1. Navigate to the page where you are presented with the Certificate Error and click on “Certificate Error” in the Address bar 
        2. Click on “View Certificates” 
        3. Click on “Install Certificate” and then Next 
        4. Select “Place all certificates in the following store” and click on Browse 
        5. Select “Trusted Root Certificate Authorities” and click on OK and then Next and Finish 
        6. Click on Yes and OK if you are asked whether you would like to install the certificate 
        7. Click on OK twice to exit windows and close and then open Internet Explorer

        You should no longer get the Certificate Error. 
        You can get more detailed information about how to fix this problem fromhttp://www.ubishops.ca/faqs/Cert.htm or http://www.brightvisions.co.uk/

        Secondly, the piece of code from htaccess ,Sometimes you may need to make sure that the user is browsing your site over securte connection. An easy to way to always redirect the user to secure connection (https://) can be accomplished with a .htaccess file containing the following lines:

        RewriteEngine On 
        RewriteCond %{SERVER_PORT} 80 
        RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
        

        Please, note that the .htaccess should be located in the web site main folder.

        In case you wish to force HTTPS for a particular folder you can use:

        RewriteEngine On 
        RewriteCond %{SERVER_PORT} 80 
        RewriteCond %{REQUEST_URI} somefolder 
        RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L]
        

        The .htaccess file should be placed in the folder where you need to force HTTPS.

        I hope that your query had been solved.

        Kotkov Highland 2 Replies Last reply Reply Quote 1
        • Kotkov
          Kotkov @mediabase last edited by

          Thanks Harald. It is not about me, I don't want my visitors to run to the screen like that. I know that Bank of america had a problem like that, they fixes it.

          Some other top websites still run like that on https

          One friend today told me that you need to buy additional Certs or smth  like that. I never worked with SSL before so this is smth that I need to find out.

          I will call Verisign tomorrow and post here what they say

          1 Reply Last reply Reply Quote 0
          • RyanKent
            RyanKent last edited by

            Serge,

            It sounds like the certificate is not properly installed on the server. The steps to install a Verisign SSL certificate are (from memory):

            • generate a CSR from your server. The method to do such varies based on your hosting setup. If you use WHM, there is an option within the panel. If none of this makes sense, contact your web host for guidance.

            • Verisign will provide you with the key. This key then needs to be installed on your server. You can do this via WHM or contact your web host provider.

            • Verisign has a tool which verifies the certificate has been properly installed. If the certificate is installed correctly, users will not see the warning you mentioned in IE nor any other browser.

            • htaccess is not related to the above process. What the change in htaccess allows you to do is ensure visitors can only view your site in https://

            • once the above is complete, you will want to review your code to ensure all images and other objects are presented only in https on secure pages. If you skip this step, users will receive a "not all items on this page are secure. Do you wish to view the unsecure objects" error.

            • now you can add your Verisign trust badge to your page(s)

            Good Luck.

            1 Reply Last reply Reply Quote 2
            • Highland
              Highland last edited by

              It definitely sounds like your certificate is not installed correctly. I wouldn't worry about the htaccess until you have the SSL version working properly.

              Something you might have missed is an intermediate certificate (sometimes called a CA certificate). That helps the end user browser validate the signature. I don't use Verisign so I don't know if they use one, but other SSL providers I use do.

              Kotkov 2 Replies Last reply Reply Quote 1
              • Highland
                Highland @mediabase last edited by

                I wouldn't install the certificate to get around this problem. In fact, that could make things harder to fix because your browser has now been fixed but everyone else get a scary SSL error that drives them off. Your end user will not know how to install a certificate, nor should they need to.

                You either need to fix this in Apache or your control panel software (if you use one).

                1 Reply Last reply Reply Quote 1
                • Kotkov
                  Kotkov @Highland last edited by

                  Thank you all guys, but Certificate installed correctly. I verified it several times with server administrator and VeriSign.

                  We have problems with intermediaries before but we fixed them.

                  As I understand the certificate is issued for "https://example.com", so whenever somebody types "https://www.example.com" it shows that certificate is not valid for this domain.

                  I am just about to find out, calling VeriSign

                  1 Reply Last reply Reply Quote 0
                  • Kotkov
                    Kotkov @Highland last edited by

                    Thank you all guys, but Certificate installed correctly. I verified it several times with server administrator and VeriSign.

                    We have problems with intermediaries before but we fixed them.

                    As I understand the certificate is issued for "https://example.com", so whenever somebody types "https://www.example.com" it shows that certificate is not valid for this domain.

                    I am just about to find out, calling VeriSign

                    1 Reply Last reply Reply Quote 0
                    • Kotkov
                      Kotkov last edited by

                      Like I thought, you need to buy another certificate for https://www as it is considered another domain in modern browsers.

                      Thanks to all for responses

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Deleting Tags Properly - Advice Needed
                        GastonRiera
                        GastonRiera
                        0
                        2
                        81

                      • Need help please with url guidelines.
                        signsny
                        signsny
                        0
                        6
                        105

                      • Many Errors on E-commerce website mainly Duplicate Content - Advice needed please!
                        dotfly
                        dotfly
                        0
                        3
                        84

                      • Need Advice: How should we handle this situation?
                        MikeRoberts
                        MikeRoberts
                        0
                        5
                        307

                      • Help needed please with 301 redirects in htaccess file.
                        petersommertravels
                        petersommertravels
                        0
                        9
                        2.3k

                      • .htaccess help please
                        Dr-Pete
                        Dr-Pete
                        0
                        3
                        461

                      • Domain targeting advice needed please
                        Hannah_Smith
                        Hannah_Smith
                        0
                        2
                        678

                      • Well, I need some help, advice, something.
                        RyanKent
                        RyanKent
                        0
                        4
                        400

                      Get started with Moz Pro!

                      Unlock the power of advanced SEO tools and data-driven insights.

                      Start my free trial
                      Products
                      • Moz Pro
                      • Moz Local
                      • Moz API
                      • Moz Data
                      • STAT
                      • Product Updates
                      Moz Solutions
                      • SMB Solutions
                      • Agency Solutions
                      • Enterprise Solutions
                      • Digital Marketers
                      Free SEO Tools
                      • Domain Authority Checker
                      • Link Explorer
                      • Keyword Explorer
                      • Competitive Research
                      • Brand Authority Checker
                      • Local Citation Checker
                      • MozBar Extension
                      • MozCast
                      Resources
                      • Blog
                      • SEO Learning Center
                      • Help Hub
                      • Beginner's Guide to SEO
                      • How-to Guides
                      • Moz Academy
                      • API Docs
                      About Moz
                      • About
                      • Team
                      • Careers
                      • Contact
                      Why Moz
                      • Case Studies
                      • Testimonials
                      Get Involved
                      • Become an Affiliate
                      • MozCon
                      • Webinars
                      • Practical Marketer Series
                      • MozPod
                      Connect with us

                      Contact the Help team

                      Join our newsletter
                      Moz logo
                      © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                      • Accessibility
                      • Terms of Use
                      • Privacy