Title: Force a redirect from HTTP to HTTPS not saving.
Last modified: January 1, 2020

---

# Force a redirect from HTTP to HTTPS not saving.

 *  Resolved [aberbenni](https://wordpress.org/support/users/aberbenni/)
 * (@aberbenni)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/force-a-redirect-from-http-to-https-not-saving/)
 * _Force a redirect from HTTP to HTTPS_ not saving.
 * In the “_Site_” page selecting the checkbox “_Force a redirect from HTTP to HTTPS_”
   and saving with the “Update” button I can see the tab “Settings saved”.
    But 
   returning to the “_Site_” page the checkbox is deselected. The site does not 
   redirect from HTTP to HTTPS.
 * WP 5.3, PHP 7, MySQL 5.6, NGINX

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

 *  [Gal Baras](https://wordpress.org/support/users/galbaras/)
 * (@galbaras)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/force-a-redirect-from-http-to-https-not-saving/#post-12285455)
 * It will help to check error_log, wp-admin/error_log and the browser console and
   report what you find here.
 *  Thread Starter [aberbenni](https://wordpress.org/support/users/aberbenni/)
 * (@aberbenni)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/force-a-redirect-from-http-to-https-not-saving/#post-12287112)
 * No errors to report in console or server-side logs. I think the problem is that
   the checkbox is not populated correctly from JSON data.
 * Options are saved in db:
 * `a:21:{s:7:"support";b:0;s:5:"token";s:32:"969334de9cfacdd3e84d02e4fd4439dc";
   s:12:"monitor_post";i:2;s:13:"monitor_types";a:3:{i:0;s:4:"post";i:1;s:4:"page";
   i:2;s:5:"trash";}s:19:"associated_redirect";s:0:"";s:11:"auto_target";s:0:"";
   s:15:"expire_redirect";i:30;s:10:"expire_404";i:30;s:7:"modules";a:0:{}s:10:"
   newsletter";b:0;s:14:"redirect_cache";i:1;s:10:"ip_logging";i:2;s:13:"last_group_id";
   i:2;s:8:"rest_api";i:0;s:5:"https";b:1;s:8:"database";s:3:"4.1";s:10:"flag_query";
   s:5:"exact";s:9:"flag_case";b:0;s:13:"flag_trailing";b:0;s:10:"flag_regex";b:
   0;s:7:"headers";a:0:{}}`
 * XHR JSON is:
 *     ```
       {
          "settings":{
             "support":false,
             "token":"969334de9cfacdd3e84d02e4fd4439dc",
             "monitor_post":2,
             "monitor_types":[
                "post",
                "page",
                "trash"
             ],
             "associated_redirect":"",
             "auto_target":"",
             "expire_redirect":30,
             "expire_404":30,
             "modules":[
   
             ],
             "newsletter":false,
             "redirect_cache":1,
             "ip_logging":2,
             "last_group_id":2,
             "rest_api":0,
             "https":true,
             "database":"4.1",
             "flag_query":"exact",
             "flag_case":false,
             "flag_trailing":false,
             "flag_regex":false,
             "headers":[
   
             ]
          },
          "groups":[
             {
                "label":"WordPress",
                "value":[
                   {
                      "label":"Redirect",
                      "value":1
                   },
                   {
                      "label":"Modified posts",
                      "value":2
                   }
                ]
             }
          ],
          "installed":"\/var\/www\/www.website.com\/",
          "canDelete":true,
          "post_types":{
             "post":"Posts",
             "page":"Pages",
             "project":"Projects",
             "trash":"Trash"
          }
       }
       ```
   
 * But checkbox is not selected in UI.
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/force-a-redirect-from-http-to-https-not-saving/#post-12312129)
 * Noting this was fixed in 4.6.2

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

The topic ‘Force a redirect from HTTP to HTTPS not saving.’ is closed to new replies.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [John Godley](https://wordpress.org/support/users/johnny5/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/force-a-redirect-from-http-to-https-not-saving/#post-12312129)
 * Status: resolved