[users@httpd] redirect q

2015-09-29 Thread K R
Hi, I am trying to force redirect HTTP to HTTPS as below RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] but it fails with too many redirect error . appreciate any help . thanks Kart

Re: [users@httpd] redirect q

2015-09-29 Thread Kurtis Rader
On Tue, Sep 29, 2015 at 6:19 PM, K R wrote: > I am trying to force redirect HTTP to HTTPS as below > > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] > > but it fails with too many redirect error . > Did you google "apache