I need to redirect only one page in my wordpress site from http to https. I searched online but none of the solutions seem to work. This is the code I have in my .htaccess file:
# Redirect to force SSL on test page
RewriteCond %{HTTPS} off
RewriteRule ^test/$ https://www.example.com/test/ [R=301,L]
Any suggestions would be greatly appreciated.
There’s a plugin called “page links to”
It adds a meta box to the bottom of the post/page and you can tell it “point to other URL” instead of “Point to existing url”. It then gives you a box to put any URL in there you’d like. I presume, you’d be able to redirect to https:// since we’ve used it for years to redirect to many different places (though not specifically an https version of the page). It’s a free plugin though, and I don’t see why it wouldn’t work
What about this?
Cheers.
edit
.htaccess
: