[us...@httpd] http redirection to httpd

2009-11-05 Thread sangfroid
Hi, I have two webpages... 1. www.mypage.com and 2. www.mypage.com/private The issue that I am having is, I need to redirect all http requests coming to http://www.mypage.com/private to https://www.mypage.com However, I don't want the requests coming to http://www.mypage.com to be redirected

Re: [us...@httpd] http redirection to httpd

2009-11-05 Thread John List
sangfroid wrote: Hi, I have two webpages... 1. www.mypage.com and 2. www.mypage.com/private The issue that I am having is, I need to redirect all http requests coming to http://www.mypage.com/private to https://www.mypage.com However, I don't want the requests coming to http://www.mypage.com

Re: [us...@httpd] http redirection to httpd

2009-11-05 Thread sangfroid
Hi John, Thank you for the reply. I also found one more way to do it ... Added the following directive in httpd.conf Location /private RewriteEngine On ReWriteCond %{HTTPS} !=on RewriteRule .* https://%{HTTP_HOST}:443%{REQUEST_URI} [QSA,R=permanent,L] /Location However, now the

Re: [us...@httpd] http redirection to httpd

2009-11-05 Thread André Warnier
sangfroid wrote: Hi John, Thank you for the reply. I also found one more way to do it ... Added the following directive in httpd.conf Location /private RewriteEngine On ReWriteCond %{HTTPS} !=on RewriteRule .* https://%{HTTP_HOST}:443%{REQUEST_URI} [QSA,R=permanent,L] /Location