-1

How to force change the URL from https to http, when a user leaves the https page by clicking on another page?

can you use htaccess? or javascript?

this is for a wordpress site.

Any help is appreciated, thank you!!

  • You can use a plugin, there are many available to do this. Or do you have to do it programmaticly? – alstonp Jul 20 '15 at 19:47
  • I tried finding a plugin that is not out of date or has poor reviews but couldn't manage to do so. I did find one that forces https for certain pages, however, when you leave that page the entire website is now browsing on https. :/ – Mxracer388 Jul 22 '15 at 03:05

1 Answers1

0

Can you try this code,

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

add it to your .htaccess file. Hope this will help you.

for more refrence visit forum >>

Community
  • 1
  • 1