LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Https (https://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 12:16 AM.