• Resolved aberbenni

    (@aberbenni)


    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)
  • It will help to check error_log, wp-admin/error_log and the browser console and report what you find here.

    Thread Starter aberbenni

    (@aberbenni)

    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

    (@johnny5)

    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.