Title: problem with redirecting http to https
Last modified: May 25, 2021

---

# problem with redirecting http to https

 *  [arndub](https://wordpress.org/support/users/arndub/)
 * (@arndub)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/)
 * 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 [http://mywebsite.com](http://mywebsite.com) instead of [https://mywebsite.com](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](https://mywebsite.com)
   when scanning the [http://mywebsite.com](http://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
    -  This topic was modified 4 years, 11 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

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

 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14477857)
 * 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](https://wordpress.org/support/users/arndub/)
 * (@arndub)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14478032)
 * 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 ?? 🙁
 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14479062)
 * What happens when you manually type the http address?
 *  Thread Starter [arndub](https://wordpress.org/support/users/arndub/)
 * (@arndub)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14479408)
 * I arrive on the wrong website on my smartphone, but on my computer I have the
   redirection working properly
 *  Thread Starter [arndub](https://wordpress.org/support/users/arndub/)
 * (@arndub)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14479548)
 * 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 !
 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14479584)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/problem-with-redirecting-http-to-https/#post-14479584)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
