dicedtomatoe
Member
Posted 3 years ago #
For the life of me I can't figure out how to get WordPress to work with HTTPS. I want to make a single page secure, but when I do that with the SSL Admin plugin my browser goes into a redirect error. Is it possible to make a static page secure in wordpress?
dicedtomatoe
Member
Posted 3 years ago #
I figured it out!! Finally!!
I do believe it is a media temple thing, but at least I figured it out. In the wp-includes/cononial.php file you have to change 'HOST_NAME' to 'SERVER_NAME' on line 48.
diced:this information is just odd.there is no line in canonical.php(I think this is what you mean by cononial)Host_name or Server_Name on line 48 in the referenced file.
here is the block I believe you are talking about:
if ( !$requested_url ) {
// build the URL in the address bar
$requested_url = ( !empty($_SERVER['HTTPS'] ) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
$requested_url .= $_SERVER['HTTP_HOST'];
$requested_url .= $_SERVER['REQUEST_URI'];
So where in this would I make your changes?
scanreg
Member
Posted 3 years ago #
Did this work?
There is some content that I'd like to force SSL on
Thanks
I am successfully securing just one page on a website:
https://www.chillyo.com/shop/check-out/
with a private SSL certificate.
I secured this page by pasting /shop/check-out/ in the Additional URLs box of Admin SSL plugin options page.
You can get this plugin here:
http://wordpress.org/extend/plugins/admin-ssl-secure-admin/
This plugin is awesome please donate!
That worked beautifully for me mccormicky! Thanks!
I think this might have been your problem. Yes it's a mediatemple thing:
http://docs.shopplugin.net/Media_Temple_SSL_Redirect_Loop