I need help with users accessing my site via HTTPS. I only want to have 2 pages able to be accessed via HTTPS. All other pages should be accessed HTTP only and if the user tries to access the page via HTTPS it will redirect them to the HTTP version of that page. I have tried several .htaccess files but I cannot seem to get any of them to work.
Any help is greatly appreciated!
Couple of different ways:
You could either place some logic in the 2 pages (
enroll.phpandRegistered.php) to redirect to HTTPS.Assuming you are using Apache Web Server (other web servers including IIS are fairly similar with redirect mechanism), you can employ pattern matching and for these two URLs, specify a redirect to HTTPS.