WordPress.org

Ready to get started?Download WordPress

Forums

ssl links (4 posts)

  1. Anonymous
    Unregistered
    Posted 5 years ago #

    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?

  2. moshu
    Member
    Posted 5 years ago #

    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!)

  3. Anonymous
    Unregistered
    Posted 5 years ago #

    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.

  4. yaphi
    Member
    Posted 5 years ago #

    no I want this too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags