I needed to set up a Wordpress installation where https is on nonstandard port and the admin interface lives in that land, while the site itself is using plain http. In wp-config.php: if (!empty($_SERVER['HTTPS'])) { define('WP_SITEURL', 'https:/ ... read more →