• How can I make links start with https:// when my blog is accessed over an ssl-secured connection, and http:// otherwise?

    I’ve made my site available with and without ssl. The same content is available either way, but visitors have the option to use ssl encryption if they want to (e.g. if accessing the site from work). I consider this an important feature.

    If someone visits http://myblog.com/ all the links generated by WordPress (permalinks, pages, archives, etc.) look like http://myblog.com/content. The problem is, if someone visits https://myblog.com/ the permalinks still look like http://myblog.com/permalink. Visitors to https://myblog.com/ will expect links to content in my blog to be ssl secured will be surprised to find that they are not.

    I’m aware that I could use mod_rewrite to redirect all those http:// links to https:// links, but this would inconvenience visitors who don’t want to use ssl. So, how can I get WordPress to generate https:// links when accessed over an ssl connection and http:// links otherwise?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I consider this an important feature.

    Unfortunately, probably, you are the only one. Even if you posted it 3 times – it is one single person wanting this. (deleted the two other topics!)

    Thread Starter 820724

    Sorry, I didn’t mean to post three times. My connection timed out the first two times.

    If no one else wants this feature, then I guess that’s my problem. I can either get familiar enough with WordPress to add it myself, or I can use another blogging tool.

    What I don’t get is, why did the developers apply this feature to the admin panel but not to the entire blog? Log in using ssl, your session stays https. Log in without http, your session remains without ssl. Go anywhere else in the blog, your session reverts to http. It’s just weird.

    no I want this too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ssl links’ is closed to new replies.