Openshift redirects wp-admin to https

2019-03-16 11:30发布

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 warning and images in dashboard are not displayed even after disabling mixed content filter on firefox.

I this is my .htaccess file

Options +FollowSymlinks

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{SERVER_PORT} ^443$
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]

    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress
</IfModule>

What is the possible solution to overcome this problem.

1条回答
相关推荐>>
2楼-- · 2019-03-16 11:46

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:

查看更多
登录 后发表回答