Jump to content


How do I disable http?

  • Please log in to reply
1 reply to this topic

#1 gudmunson

  • Members
  • PipPip
  • Member
  • 17 posts

Posted 28 November 2005 - 09:29 PM

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.


#2 Cook

  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts
  • LocationSingapore

Posted 29 November 2005 - 02:09 AM

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]


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users