{"id":1525,"date":"2013-10-29T00:00:04","date_gmt":"2013-10-28T23:00:04","guid":{"rendered":"http:\/\/www.xn--slipsprogrammr-2qb.no\/?p=1525"},"modified":"2013-10-29T00:00:04","modified_gmt":"2013-10-28T23:00:04","slug":"slightly-securing-wordpress-with-shared-ssl","status":"publish","type":"post","link":"https:\/\/www.slips.pl\/?p=1525","title":{"rendered":"Slightly securing WordPress with shared SSL"},"content":{"rendered":"<p>Really short version, edit your <code>wp-config.php<\/code>;<\/p>\n<pre>\ndefine('FORCE_SSL_ADMIN', true);\ndefine('WP_HOME',        'http:\/\/www.blog-url.com');\ndefine('WP_SITEURL',     'https:\/\/secure.host-url.com\/~account\/wordpress');\ndefine('WP_CONTENT_URL', 'http:\/\/www.blog-url.com\/wp-content');\n<\/pre>\n<p>This should allow your site to have it&#8217;s own address, yet enable secure login via a shared ssl.<\/p>\n<p>The longer version, I really don&#8217;t care to explain, but if you break something whilst changing the &#8220;WordPress Address (URL)&#8221; (WP_SITEURL) and &#8220;Site Address (URL)&#8221; (WP_HOME) in Settings->General, you&#8217;re in a world of pain. Easiest form of recovery is by overriding the values in <code>wp-config.php<\/code>.<\/p>\n<p>Again, I just want to make a point of &#8220;Site Address&#8221; uses the WP_HOME variable, &#8220;WordPress Address&#8221; uses the WP_SITEURL variable. I believe this naming is counter-intuitive, because I actually spent time figuring it out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Really short version, edit your wp-config.php; define(&#8216;FORCE_SSL_ADMIN&#8217;, true); define(&#8216;WP_HOME&#8217;, &#8216;http:\/\/www.blog-url.com&#8217;); define(&#8216;WP_SITEURL&#8217;, &#8216;https:\/\/secure.host-url.com\/~account\/wordpress&#8217;); define(&#8216;WP_CONTENT_URL&#8217;, &#8216;http:\/\/www.blog-url.com\/wp-content&#8217;); This should allow your site to have it&#8217;s own address, yet enable secure login via a shared ssl. The longer version, I really don&#8217;t care to explain, but if you break something whilst changing the &#8220;WordPress Address (URL)&#8221; (WP_SITEURL) and &#8220;Site &hellip; <a href=\"https:\/\/www.slips.pl\/?p=1525\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Slightly securing WordPress with shared SSL<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1525","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/1525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1525"}],"version-history":[{"count":0,"href":"https:\/\/www.slips.pl\/index.php?rest_route=\/wp\/v2\/posts\/1525\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slips.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}