Re: apache redirect rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



put your check for extensions.polarion.com before the rule for community.polarion.com and end it with a [L] on the rewriterule.

-----Original Message-----
From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On Behalf Of David Hlácik
Sent: Thursday, July 23, 2009 7:47 AM
To: CentOS mailing list
Subject:  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 there are
following rules that apply

1) extensions.polarion.com is an virtual host alias to
community.polarion.com . There is a definition inside virtual host
which redirects all / to /polarion using this RedirectMatch permanent
^/$ /polarion/

2) what I want to achieve is to check if user comes from
extensions.polarion.com and If so to redirect him to
extensions.polarion.com/polarion/extensions

I guess something like :

RewriteCond %{HTTP_HOST} extensions.polarion.com
RewriteRule / http://extensions.polarion.com/polarion/extensions/

Is this going to work?

Thanks milion times.

David
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________CentOS mailing listCentOS@xxxxxxxxxxxxxx://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux