first make sure that /etc/httpd/conf/httpd.conf contains the following line
LoadModule rewrite_module modules/mod_rewrite.so
Then add following lines to httpd.conf
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*)$ https://www.foo.com/$1 [L,R]
finally restart the apache using
service httpd restart
last but not least test it using http://www.your.domain.com/
then you will see https://www.your.domain.com/
hope this method works for all...............
No comments:
Post a Comment