gudmunson Posted November 28, 2005 Share Posted November 28, 2005 I'm running apache 2.0.55 and I'm trying to figure out how to disable http so I can only use https. Currently going to my ip from http:// and https:// yields the same results but I only want to use https. this seems like a pretty simple question, but I haven't been able to find anything out looking through google...Is this an apache option or an OS option? I'm running a freebsd system. Thanks! Nathan Quote Link to comment https://forums.phpfreaks.com/topic/2952-how-do-i-disable-http/ Share on other sites More sharing options...
Cook Posted November 29, 2005 Share Posted November 29, 2005 You can do it by adding this to your .htaccess file: RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteRule (.*) https://www.mydomain.com/$1 [L,R] Quote Link to comment https://forums.phpfreaks.com/topic/2952-how-do-i-disable-http/#findComment-9929 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.