I have been attempting to install WordPress on our departmental intranet at work, which uses secure HTTP. In order to get this to work, I had to change the following line in
define('COOKIEPATH', preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' ) );
define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_settings('home') . '/' ) );
I am not too sure about how everything works in WordPress yet, but I guess this search-and-replace was failing because the cookie path wasn't matching the URL. The additional
s? after the
http seems to fix this.