Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Eric Covener
On Fri, Oct 2, 2009 at 4:07 PM, Sharjeel Tariq wrote: >  the redirection rule is written in a separate file under . > > > RewriteCond %{HTTP_HOST} ^example.com$ > RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R] > > > The issue was that above rule works for all urls except for urls like > http:

Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Sharjeel Tariq
the redirection rule is written in a separate file under . RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R] The issue was that above rule works for all urls except for urls like http://example.com/news/headlines/more.jsp?content=20090624_075115_6540

Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Eric Covener
On Fri, Oct 2, 2009 at 3:48 PM, Sharjeel Tariq wrote: > rewriteEngine is on. Here is the rule in Virtual Host. > > > Servername www.example.com > DocumentRoot /www/www_example_com/ > CustomLog /var/log/apache/www_example_com_access.log > combined env=!disable_logging >

Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Sharjeel Tariq
rewriteEngine is on. Here is the rule in Virtual Host. Servername www.example.com DocumentRoot /www/www_example_com/ CustomLog /var/log/apache/www_example_com_access.log combined env=!disable_logging ErrorLog /var/log/apache/www_example_com_error.log

Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Eric Covener
On Fri, Oct 2, 2009 at 10:46 AM, Sharjeel Tariq wrote: > The issue with creating ServerAlias is we get two analytics reports for each > of our site. There are many benefits associated with redirecting non 'www' > urls to 'www' urls. > > I tried using following configuration in httpd.conf as per Bo

Re: [us...@httpd] apache redirection does not work

2009-10-02 Thread Sharjeel Tariq
The issue with creating ServerAlias is we get two analytics reports for each of our site. There are many benefits associated with redirecting non 'www' urls to 'www' urls. I tried using following configuration in httpd.conf as per Bob recommendation. Rewritelog logs/rewrite_log Rewriteloglevel 6

Re: [us...@httpd] apache redirection does not work

2009-10-01 Thread Martin Spinassi
On Thu, 2009-10-01 at 11:53 -0400, Sharjeel Tariq wrote: > Hi, > > > I am trying to set up apache redirection rule for redirecting all of > our non > 'www' domains to 'www' domains. I got the redirection rule from apache > manual > but the rule does not work when we have subdirectories and parame

Re: [us...@httpd] apache redirection does not work

2009-10-01 Thread Jonathan Zuckerman
On Thu, Oct 1, 2009 at 9:37 AM, Bob Ionescu wrote: > 2009/10/1 Sharjeel Tariq : >> RewriteCond %{HTTP_HOST} ^example.com$ >> RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R] >> >> >> The above rule works for all urls except when I have urls like >> >> http://example.com/news/headlines/more.jsp?

Re: [us...@httpd] apache redirection does not work

2009-10-01 Thread Bob Ionescu
2009/10/1 Sharjeel Tariq : > RewriteCond %{HTTP_HOST} ^example.com$ > RewriteRule ^/(.*)$ http://www.example.com/$1 [L,R] > > > The above rule works for all urls except when I have urls like > > http://example.com/news/headlines/more.jsp?content=20090624_075115_6540 > > Instead of redirecting the a

[us...@httpd] apache redirection does not work

2009-10-01 Thread Sharjeel Tariq
Hi, I am trying to set up apache redirection rule for redirecting all of our non 'www' domains to 'www' domains. I got the redirection rule from apache manual but the rule does not work when we have subdirectories and parameters at the end of url. The redirection rule i have is RewriteCond %{H