Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-18 Thread aparna Puram
Hello Spliff, The rewirtes that you have specified is performing the same. https:// is not being redirected to https:// However, http:// is redirected to https:// Since the ssl ceritificate is installed only for the dns name, When I am accessing https://localhost, It says ssl is installed for

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-18 Thread SpliFF
I think you're saying you want: RewriteEngine On RewriteCond %{HTTP_HOST} ^$ RewriteRule (.*) https://%{REQUEST_URI} As long as you are checking for https or port 443 in the rewrite condition you're not redirecting anywhere on HTTPS requests. If you want HTTPS to redirect then your condition is

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello Spliff, Well actually to explain the complete scenario, RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{REQUEST_URI} The above rewirte is set to redirect all the http requests to https request. It is working fine when I give the http:// it is rewriting to https:// bu

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread SpliFF
On 18/03/12 15:02, aparna Puram wrote: > Hello Daniel/Mathijs, > > There is only one virtual host. > > server name is :selecvcp1.sw.ericsson.se > Dns name for that server is : select.ericsson.se > > both will redirect to the same apache

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello Daniel/Mathijs, There is only one virtual host. server name is :selecvcp1.sw.ericsson.se Dns name for that server is : select.ericsson.se both will redirect to the same apache when I use http:selectvcp1.sw.ericsson.se, I m being redirected to https://select.ericsson.se. However, When i ty

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread Daniel Ruggeri
On 3/17/2012 12:58 PM, aparna Puram wrote: > Hello All, > > I am working on a project where I have to redirect all the http > requests to https protocol. I have configured the following rewrite > rules and it is working fine. > > RewriteEngine On > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^

Re: [users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread Mathijs
All you need is an additional virtualhost that will catch all requests that need to be redirected. See http://wiki.apache.org/httpd/CanonicalHostNames for details on this. Note that the example there redirects from www.example.comto example.com, but the same principles apply. Kind regards, Mathijs

[users@httpd] Urgent !!! - Rewrite issue

2012-03-17 Thread aparna Puram
Hello All, I am working on a project where I have to redirect all the http requests to https protocol. I have configured the following rewrite rules and it is working fine. RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*)$ https://$1 [L,R] then http:// is redirecting to htt