Jump to content

Archived

This topic is now archived and is closed to further replies.

gudmunson

How do I disable http?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.