Mobile app version of vmapp.org
Login or Join
Vandalay111

: Serving WordPress menu links in only HTTPS or HTTP depending on how it's accessed I have a WordPress site which uses WordPress HTTPS to enable SSL when users access it via that protocol. However,

@Vandalay111

Posted in: #Https #Wordpress

I have a WordPress site which uses WordPress HTTPS to enable SSL when users access it via that protocol. However, currently the menu links point back to the HTTP version.

I want users to be linked to HTTPS pages while accessing the site over HTTPS, but not when accessing it over HTTP. Is this possible?

Note: I have tried changing the menu options to use // and / for the links, but in both cases they are just rendered as HTTP links.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

2 Comments

Sorted by latest first Latest Oldest Best

 

@Welton855

Do you have the Yoast SEO plugin? I was just actually doing this on my client's site. If so, try going to SEO > SEO Settings > Permalinks > Canonical Settings > Leave Default. (I know canonicalization isn't what you're looking for, but the other two options are "force HTTP" or "force HTTPS.")

Earlier today, I was staying on the secure versions of the pages (when default was set) and staying on the non-secure versions of the page, depending on where I first started.

Also, depending on what kind of server they're on, you could probably do some URL rewriting.

10% popularity Vote Up Vote Down


 

@Si4351233

I think, if you are enabling to force the user to use SSL links in settings, that will make all the pages use HTTPS, but not in HTTP. Make sure that your site should be in either HTTP or HTTPS, because only one is possible.

However, we can make some default pages like payment transaction pages or login/register pages HTTPS because they are really secure pages.

One more tip is, if you are enabling HTTPS on all your pages, your site will not be cached
by Google robots, so use HTTP in that case.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme