Possible Duplicate:
Force SSL/https using .htaccess and mod_rewrite
Hi i am new to mod rewrite htaccess, Can anyone help me to redirect each http:// request to https:// Thanks in advance.
Possible Duplicate:
Force SSL/https using .htaccess and mod_rewrite
Hi i am new to mod rewrite htaccess, Can anyone help me to redirect each http:// request to https:// Thanks in advance.
Simply put:
RewriteEngine On
# Rewrite all non-HTTPS requests to HTTPS.
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]