[liberationtech] HTTPS links on wordpress blog post have S removed automatically, odd

SiNA sina at anarchy.cx
Thu May 5 11:44:50 PDT 2011


Try adding this to wp-config.php, it should make all the core parts of
wordpress, use https for urls that are loading from an HTTPS site:

if(strlen(strstr( $_SERVER['SERVER_PROTOCOL'],"HTTPS"))>0) {
    define('WP_HOME',    'https://' . $_SERVER['HTTP_HOST'] . '');
    define('WP_SITEURL',     'https://' . $_SERVER['HTTP_HOST'] . '');
}
else {
    define('WP_HOME',    'http://' . $_SERVER['HTTP_HOST'] . '');
    define('WP_SITEURL',     'http://' . $_SERVER['HTTP_HOST'] . '');
}


Hope it helps!

--
SiNA
pgp 0x0B47D56D





On 05/05/2011 05:25 AM, Frank Corrigan wrote:
> PS:
>
> Below is the html code snippet for the page, (from within the
> worpress.com Dashboard) that confirms HTTPS is rewritten to HTTP
>
> <strong>Note:</strong> When visiting <a
> href="http://www.franciscorrigan.com">www.franciscorrigan.com</a> it
> automatically redirects to this page<a
> href="https://franciscorrigan.files.wordpress.com/2000/01/contact.pdf"
> target="_blank">: </a><a title="Secure contact form over https
> encryption"
> href="https://franciscorrigan.wordpress.com/2000/01/01/contactme/"
> target="_blank">https://franciscorrigan.wordpress.com/2000/01/01/contactme/</a>
> ? (libtech note..)
>
> Thanks
> Frank
>
> ----- Original message -----
> From: "Frank Corrigan" <email at franciscorrigan.com>
> To: "Liberation Technologies" <liberationtech at lists.stanford.edu>
> Date: Thu, 05 May 2011 13:11:23 +0100
> Subject: HTTPS links on wordpress blog post have S removed
> automatically, odd
>
> I was setting up a 'secure' https contact page at:
> https://franciscorrigan.wordpress.com/2000/01/01/contactme/
>
> But when I post a link on the above blog page, it is overwritten by
> wordpress.com to remove the S in HTTPS, this is odd.
>
> In summary when I add this link to the blog:
>
> httpS://franciscorrigan.wordpress.com/2000/01/01/contactme/
>
> it becomes:
>
> http://franciscorrigan.wordpress.com/2000/01/01/contactme/
>
> Clearly this action seems to be hard coded into wordpress.com - I have
> replicated this problem a nuber of times, ensured I do not have a chache
> of the old page and added a ? after the link to ensure it is the latest
> version of the blog post.
>
> I cannot expect visitors to this page to have the HTTPS Everywhere
> add-on enabled, at least when I auto redirect to this page from
> http://www.franciscorrigan.com it does at least stay on the HTTPS
> version.
>
> Thanks
> Frank
>
> _______________________________________________
> liberationtech mailing list
> liberationtech at lists.stanford.edu
>
> Should you need to change your subscription options, please go to:
>
> https://mailman.stanford.edu/mailman/listinfo/liberationtech
>
> If you would like to receive a daily digest, click "yes" (once you click above) next to "would you like to receive list mail batched in a daily digest?"
>
> You will need the user name and password you receive from the list moderator in monthly reminders.
>
> Should you need immediate assistance, please contact the list moderator.
>
> Please don't forget to follow us on http://twitter.com/#!/Liberationtech
>




More information about the liberationtech mailing list