Wordpress on Apache is redirecting all https to http

Posted by Krist van Besien on Server Fault See other posts from Server Fault or by Krist van Besien
Published on 2013-11-01T07:14:10Z Indexed on 2013/11/01 9:58 UTC
Read the original article Hit count: 210

Filed under:
|

I have a problem with a wordpress site on a server I admin. I don't know anything about wordpress however.

My problem is that we want the site to be accessed over https, bot somehow all requests to https:// URLs are answered by the server with a 302, redirecting to http.

The wordpress site itself is configured to use https, and we see that in the pages that are generated the links are all https links.

In the apache config there are no rewrite rules and no redirects.

However, any request to a https:// URL is answered with a redirect to the equivalent http URL. And I really would like to know where these redirects are coming from, what is generating these redirects.

I've increased the loglevel on the webserver to DEBUG, but did not get any info there. I tried to enable debug logging in wordpress per the recipy I found here: http://codex.wordpress.org/Debugging_in_WordPress But did not get a debug.log file in the directory where one should appear.

I'm really at a loss here, and need to fix this urgently.

Any hints as where to start looking?

Apache is 2.2.14 on Ubuntu. There are several other virtual hosts on this server, using php and https without any problem...

Edit: I created a small info.php script and dropped that in the webservers' root. Calling this yields the output of the script, no redirect is generated. This suggest that it's not the webserver, but wordpress that is doing it.

A second thing I noticed is that the redirect comes with several cookies, one of which has "httponly" set. Could that be it?

© Server Fault or respective owner

Related posts about apache2

Related posts about Wordpress