Admin (attempting) redirect to HTTPS
-
Over the last 3 weeks or so, several clients and I have all experienced an intermittent issue, where when publishing/updating, when navigating between pages of dashboard, sometimes even when just trying to go to wp-login, the site attempts to use https, and so gives insecure content warnings because there is no SSL. This has happened on more than a dozen sites.
At first, this was happening in a more active hosting account, where several sites DO have SSLs, and I thought there might be an SNI issue going on. But in the last few days, I have had it occur in another hosting account where there is not SSL present.
I’ve tried to monitor my error logs for when this is happening, and up until this morning, I thought this was related to the https redirect:
[Wed Jun 04 15:32:15 2014] [error] [client 107.136.246.168] ModSecurity: Warning. Match of "rx ^POST$" against "REQUEST_METHOD" required. [file "/etc/apache2/mod_security/custom/wpbrute.conf"] [line "6"] [hostname "fumsdrl.org"] [uri "/wp-login.php"] [unique_id "U4@eb826sAwAAGGLDbEAAACS"] [Wed Jun 04 15:32:16 2014] [error] [client 107.136.246.168] ModSecurity: Warning. Match of "rx ^POST$" against "REQUEST_METHOD" required. [file "/etc/apache2/mod_security/custom/wpbrute.conf"] [line "11"] [hostname "fumsdrl.org"] [uri "/wp-login.php"] [unique_id "U4@eb826sAwAAGGLDbEAAACS"]
I’m not sure what this error is, but it seemed related to security. I had been using WordFence, so as a test, I deactivated WordFence, and installed Login Lockdown. I’m still getting these errors. And these errors are happening much more frequently than the https redirect.
Also, this morning, when I had a redirect instance, I couldn’t find an error in the log related to that domain. As a test, I deactivated Login Lockdown too, and I am still getting these errors without any security plugin active. I’m still not sure what is causing these errors, but I’m thinking that they are totally unrelated to my https redirect.
I wondered if the redirect was somehow related to sessions prematurely ending, but the redirect doesn’t seem to be trying to go to a login page, just an https version of the dashboard page.
The weird thing is this seems so intermittent– I can be working just fine, navigating through the dash, making updates, then all of a sudden, an insecure content warning because https tried to be invoked. There doesn’t seem to be any pattern to it.
Then last night, I had an email from a client that their site from the front was giving insecure content warnings. No SSL on the site, no attempted dashboard access for this client.
I’ve hunted through plugins looking for https, tried some deactivations, tried to look at plugins deployed on affected & non-affected sites, but I’m not finding much. Of course, because the issue is intermittent, it’s hard to know if I’m finding a solution.
Has anyone seen this sort of thing before?
And ideas about focus areas for troubleshooting?
If I keep coming up empty for solutions, would a possible workaround be forcing http in the htaccess like this?
RewriteEngine On RewriteCond %{HTTPS} on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- The topic ‘Admin (attempting) redirect to HTTPS’ is closed to new replies.