Title: Force redirect to https
Last modified: August 31, 2016

---

# Force redirect to https

 *  Resolved [erikture](https://wordpress.org/support/users/erikture/)
 * (@erikture)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/force-redirect-to-https/)
 * I have a site that is using ssl and https. If I access a page without https the
   server redirects to https. The problem is if I access a page without http like
   this example
 * mysite.com/protected
 * Then the link to Custom Login will be like this
    [https://mysite.com/wp-login.php?redirect_to=http%3A%2F%2Fmysite.com%2Fprotected](https://mysite.com/wp-login.php?redirect_to=http%3A%2F%2Fmysite.com%2Fprotected)
 * and that is not the page I entered username and password for. I would like the
   redirect part to be redirect_to=https%3A%2F%2Fmysite.com%2Fprotected
 * How can this be done?
 * /Erik
 * [https://wordpress.org/plugins/custom-login/](https://wordpress.org/plugins/custom-login/)

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

 *  Plugin Author [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/force-redirect-to-https/#post-7294130)
 * Custom Login doesn’t handle any redirects. This is a core WordPress feature. 
   You’ll have to trouble shoot HTTPS at the server level if you want 100% SSL.
 *  Thread Starter [erikture](https://wordpress.org/support/users/erikture/)
 * (@erikture)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/force-redirect-to-https/#post-7294137)
 * Thanks!
 * I managed to fix it with som rewrite roles in the .htaccess file.
 *  Plugin Author [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/force-redirect-to-https/#post-7294264)
 * Thanks for the followup. If you are liking the plugin I hope you can leave a 
   good [review](https://wordpress.org/support/view/plugin-reviews/custom-login).

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

The topic ‘Force redirect to https’ is closed to new replies.

 * ![](https://ps.w.org/custom-login/assets/icon.svg?rev=3077180)
 * [Custom Login](https://wordpress.org/plugins/custom-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-login/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-login/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Austin](https://wordpress.org/support/users/austyfrosty/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/force-redirect-to-https/#post-7294264)
 * Status: resolved