• claire44

    (@claire44)


    Hi,
    I have an issue with my website.
    When I type “site:www.mysite.com” in Google I can see that Google has indexed a lot of pages with https (I don’t know why : my sitemap lists only http adresses).
    Since my server does’t have any certificate, when you click the Google results, you have an error message “wrong certificate” (like : “NET::ERR_CERT_COMMON_NAME_INVALID” with Chrome).
    I tried to redirect all https:// calls to http://, I tried several things with the htaccess but It did not work.
    Is there a way to fix it ?
    And, why does Google index some pages with https ? I never had this issue with the former version of my site (that was created with Drupal).
    Thanks for your help,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Check your htaccess file and make sure the HTTPS is not being forced in there. If you do not know how to read the code share it here using http://pastebin.com/. Also make sure you do not have any plugins that are forcing HTTPS.

    Hope this helps!

    Thread Starter claire44

    (@claire44)

    Thanks ! I’ve tested several codes un my htaccess to redirect https to http but I removed all of them so I don’t think it could be that. I’ve pasted my .htaccess file in pastebin but I’m not sure it’ll help.
    I don’t see either what plugin could do that.
    The strangest thing is that only some pages are indexed in https. It doesn’t make sense !
    when I type “site:www.mysite.com” in google, the search results look like this :

    Page A
    http://www.mysite.com/pagea
    Page B
    https://www.mysite.com/pageb
    Page C
    https://www.mysite.com/pagec
    Page D
    http://www.mysite.com/paged

    …. there no logic.

    Thread Starter claire44

    (@claire44)

    OK, in fact I just found out that all my pages are indexed twice : on with http one with https. Might be easy to solve but I still don’t know how to redirect https to http, if someone can help me it’d be great !

    Without the information i requested yesterday it is going to be hard for us to help you. Also, it would help if you provide us a list of all the plugins you are using.

    Thread Starter claire44

    (@claire44)

    Hello,
    here is the list of the plugin actually installed and activated.
    – Backwup
    – Better analytics
    – Contact Form 7
    – Duplicate Post
    – Envato Market
    – Envato WordPress Toolkit
    – Importateur wordpress
    – Redirection
    – RSS Importer
    – Slider Revolution
    – Templatera
    – WP Maintenance
    – WP Super Cache
    – WP Bakery Visual Composer
    – Yoast SEO

    After several tests, I understand my problem better :
    When I put a redirection form https to http in my .htaccess file, here’s what’s happening :
    – the redirection works fine with the homepage : if I type https://www.mysite.com in my browser, I’m redirected to http://www.mysite.com
    – but if I type another URL (like https://www.mysite.com/pagea), I’m not redirected, and the page is “broken” on some browsers because some ressources are not loaded (the browser try to load the https version of the ressource, and it doesn’t exist).

    It tried a lot of things, and I don’t get why the instruction in .htaccess works only with the homepage.

    This should work fine, no ?

    RewriteCond %{SERVER_PORT} !^80$
    RewriteRule ^.*$ http://www.dictanova.com/%{REQUEST_URI} [L,R=301]

    Here is a new version of my htaccess

    I would suggest using the default WP htaccess code, do not add to it.

    here is the default code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Let us know if this fixes your problem.

    Hi to all!

    claire44… did you solve this problem?
    I change my domain from https to http… and i want to redirect all external links from https to http.
    I try it via htaccess but all browser send a “certifcate error”.
    I explain my problem to my hosting provider and they reply: “It isn’t possible! There are not a solution for redirect https to http”.
    So my doubt is: are they sure?!
    Do you have a solution for me?

    Thank you!

    Thread Starter claire44

    (@claire44)

    Hi,
    I kind of solve my problem with this : http://blackhillswebworks.com/2013/10/30/redirect-wordpress-front-end-https-urls-to-http-without-a-plugin/

    It gives you a bit of code that will handle the redirection.
    However, everything is not solved…I think that the first time people still see the certificate.
    It did not managed neither to remove the https pages from Google..;

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error with https’ is closed to new replies.