LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Https (http://www.linuxquestions.org/questions/linux-newbie-8/https-863215/)

cheesewizz 02-17-2011 12:13 AM

Https
 
hi all

how can i disable http when they browsing the URL
instead of http should be https

i have apache server installed in centos

please help

Thanks

bathory 02-17-2011 12:28 AM

Hi,

You can use mod_rewrite like this
Code:

RewriteEngine On

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]

Regards


All times are GMT -5. The time now is 06:05 PM.