• Hello,

    I have a problem with a website I’m creating.
    Customers can reach the website using a QR code.
    But I made a mistake. When I created the QR code, I put the adresse https://mywebsite.com instead of https://mywebsite.com.

    And I paid and printed a lot of QR code before seen my mistake.

    Now, when my customers needs to access my website (it’s a restaurant menu which is made to be seen with a smartphone) they see a limited version of the website, as the “toggles” from the plugin “Shortcode ultimate” are not working in the http version.

    Can someone tell me how to force the access to https://mywebsite.com when scanning the https://mywebsite.com url ?

    I tried to edit the .htaccess, to change the url in wordpress general settings and to add some plugins but nothing is working…

    thanks a lot

Viewing 6 replies - 1 through 6 (of 6 total)
  • It should just be a matter of .htaccess

    # BEGIN redirect to https
    <IfModule rewrite_module>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END redirect to https
    # 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
    Thread Starter arndub

    (@arndub)

    Hello and thanks for your answer.
    I tried it and it’s still not working unfortunatly.
    I see on the DOM that the redirection is working and it’s doing perfectly on my computer. But as I scan the QR, it’s like my phone is forced to go to the http version.

    And why is there two different versions of the website anyway ?? ??

    What happens when you manually type the http address?

    Thread Starter arndub

    (@arndub)

    I arrive on the wrong website on my smartphone, but on my computer I have the redirection working properly

    Thread Starter arndub

    (@arndub)

    Ok I find out !
    I installed wordpress directly from my provider (one.com). I don’t do that normaly but this time I needed to go fast.
    Anyway, they installed a plugin “performance cache” that put my website on cache on a distant server, that’s why it wasn’t working.

    Thanks for your help !

    Ah the old ‘cache’ gotcha.

    If something doesn’t work as it should – always check caching – I should have thought that too ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘problem with redirecting http to https’ is closed to new replies.