Re: [CentOS] apache redirect rule

2009-07-24 Thread David Hláčik
inal Message- > From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On Behalf > Of David Hlácik > Sent: Thursday, July 23, 2009 7:47 AM > To: CentOS mailing list > Subject: [CentOS] apache redirect rule > > Hello guys, > > sorry for this OT, but It seems

Re: [CentOS] apache redirect rule

2009-07-23 Thread jacob
: CentOS mailing list Subject: [CentOS] apache redirect rule Hello guys, sorry for this OT, but It seems that I am a very stupid :(. I want to achieve one simple think in apache 2.2. If users will type extensions.polarion.com I want to redirect him to extensions.polarion.com/polarion/extensions However

Re: [CentOS] apache redirect rule

2009-07-23 Thread David Hláčik
Thank you Filipe, It works, have a nice day. David On Thu, Jul 23, 2009 at 5:28 PM, Filipe Brandenburger wrote: > Hi, > > On Thu, Jul 23, 2009 at 10:46, David Hláčik wrote: > > RewriteCond %{HTTP_HOST} extensions.polarion.com > > RewriteRule / http://extensions.polarion.com/polarion/extensions/

Re: [CentOS] apache redirect rule

2009-07-23 Thread Filipe Brandenburger
Hi, On Thu, Jul 23, 2009 at 10:46, David Hláčik wrote: > RewriteCond %{HTTP_HOST} extensions.polarion.com > RewriteRule / http://extensions.polarion.com/polarion/extensions/ Usually those would be regexps, so the right syntax for what you want would be something like: RewriteCond %{HTTP_HOST} =e

[CentOS] apache redirect rule

2009-07-23 Thread David Hláčik
Hello guys, sorry for this OT, but It seems that I am a very stupid :(. I want to achieve one simple think in apache 2.2. If users will type extensions.polarion.com I want to redirect him to extensions.polarion.com/polarion/extensions However there are following rules that apply 1) extensions.po