doubledee Posted April 8, 2011 Share Posted April 8, 2011 Is there a way to force one or more pages to always come up as HTTPS on my website? For example, when a user goes from my Home Page to a Log-In Page or Checkout Page, they must always be on a secured page to ensure their data is not compromised. I thought it was a simple as putting "h t t p s : //www.mysite.com/login_page.php" in the buttin link, but someone pointed out that users could hack that or somehow otherwise end up on my Log-In Page or Checkout Page on an HTTP connection which would be really bad! Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/233121-how-to-force-pages-to-be-https/ Share on other sites More sharing options...
pastcow Posted April 28, 2011 Share Posted April 28, 2011 You can do it easily via the apache config file for your site. e.g. <Files wp-login.php> Redirect permanent / https://www.yourdomain.com/ </Files> Quote Link to comment https://forums.phpfreaks.com/topic/233121-how-to-force-pages-to-be-https/#findComment-1207593 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.