Openshift redirects wp-admin to https

后端 未结 1 870
天命终不由人
天命终不由人 2021-02-06 11:08

In general option in wordpress, I have changed the wordpress directory to be on http://mywebsite.com but wordpress dashboard is still in htpps causing mixed content

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 11:29

    There is a setting in your wp-config.php file that directs all admin traffic over https. You would need to disable that option for your admin panel to work correctly.

    FORCE_SSL_ADMIN needs to be false:

    define('FORCE_SSL_ADMIN', false);
    

    solves the issue. See relevant WordPress Codex pages:

    • http://codex.wordpress.org/Administration_Over_SSL
    • http://codex.wordpress.org/Function_Reference/force_ssl_admin

    0 讨论(0)
提交回复
热议问题