Title: HTTP to HTTPS redirect not working (properly)
Last modified: March 2, 2022

---

# HTTP to HTTPS redirect not working (properly)

 *  Resolved [katatt](https://wordpress.org/support/users/katatt/)
 * (@katatt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-redirect-not-working-properly/)
 * Looking for tips or any kind of miracles in the redirection department: we are
   facing a situation in which we just can’t redirect our old HTTP URLs to our new
   HTTPS URLs.
 * We had an old wordpress website without SSL on server A, created a completely
   different wordpress site on server B, moved the domain, got an SSL certificate
   on server B, all is well and our site is working relatively OK, but no matter
   what we tweak with the settings and with plugins, we can’t redirect the old HTTP
   URLs to our new HTTPS URLs, because the website redirects every HTTP URL to the
   HTTPS front page for some reason.
 * To make things even more complicated, we changed the majority of our URLs compared
   to our previous site’s URL-s, and we did pair them with their new URL with 301
   redirects, but the redirects only work with HTTPS to HTTPS URLs – and the very
   reason we set this up is because we need these redirects to work with HTTP to
   HTTPS. We tried a few SSL plugins as well, they all said that our site uses SSL
   correctly and does redirect from HTTP to HTTPS – but in reality what it does 
   it redirect everything to the front page.
 * If anyone has any idea how to solve this puzzle, we would be eternally grateful.
   
   Thank you!
    -  This topic was modified 4 years, 2 months ago by [katatt](https://wordpress.org/support/users/katatt/).
    -  This topic was modified 4 years, 2 months ago by [katatt](https://wordpress.org/support/users/katatt/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttp-to-https-redirect-not-working-properly%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [whoudini](https://wordpress.org/support/users/whoudini/)
 * (@whoudini)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-redirect-not-working-properly/#post-15418726)
 * Hi there,
 * If you have not already tried, see if you can check the .htaccess file and add
   this code:
 * RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example-old\.com$ [NC] RewriteRule
   ^(.*)$ [http://www.example-new.com/$1](http://www.example-new.com/$1) [R=301,
   L]
 * Source:
 * [https://www.wordpressintegration.com/blog/wordpress-redirection-guide/#step5-9](https://www.wordpressintegration.com/blog/wordpress-redirection-guide/#step5-9)
 * I hope this helps!
 *  Thread Starter [katatt](https://wordpress.org/support/users/katatt/)
 * (@katatt)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-redirect-not-working-properly/#post-15418885)
 * Thank you! We tried this approach too but for some reason it broke the site –
   apparently there was an underlying error in the server-side redirects that both
   we and the service provider managed to overlook up until this point – I was just
   trying to find a delete button for my topic here only to realize I can’t delete
   it. 🙂 Anyways your answer would have solved this problem if our server was set
   up correctly, thank you!
 *  [whoudini](https://wordpress.org/support/users/whoudini/)
 * (@whoudini)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-redirect-not-working-properly/#post-15418991)
 * Thank you! Glad it all worked out!

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

The topic ‘HTTP to HTTPS redirect not working (properly)’ is closed to new replies.

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [whoudini](https://wordpress.org/support/users/whoudini/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/http-to-https-redirect-not-working-properly/#post-15418991)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
