Introduce yourself here! In order to avoid spam, new users must first comment on the discussion in the 'Introductions' before they become 'full members'
BLOG_BASEURL doesn't work with https://
  • Changed definition to:

    define('BLOG_BASEURL', ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://').$_SERVER['HTTP_HOST']. BLOG_ROOT);
  • try

    define('BLOG_BASEURL', '//'.$_SERVER['HTTP_HOST']. BLOG_ROOT);

  • That's much better than my poor attempt. Thanks.
  • Well ... almost works. With the '//' patch, the I can't log in as administrator any more. The password check works, but the administration page doesn't show.
  • The problem is with fp-includes/core/core.cookie.php:

    define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', BLOG_BASEURL ) );
    define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', BLOG_BASEURL ) );

    I replaced these with:

    define('COOKIEPATH', preg_replace('|(https?:)?//[^/]+|i', '', BLOG_BASEURL ) );
    define('SITECOOKIEPATH', preg_replace('|(https?:)?//[^/]+|i', '', BLOG_BASEURL ) );
  • thanks, i'll have a look; I think I'll apply all these patches :)
  • Before you apply these, maybe think also about a non-80 port (there should be a $_SERVER['HTTP_PORT']), just to have all cases.
This discussion has been closed.
All Discussions
Start a New Discussion

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion