Re: apache redirect rule

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



Thank you Filipe,

It works, have a nice day.

David

On Thu, Jul 23, 2009 at 5:28 PM, Filipe Brandenburger <filbranden@xxxxxxxxx> wrote:
Hi,

On Thu, Jul 23, 2009 at 10:46, David Hláčik<david@xxxxxxxxx> 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:
The "=" in RewriteCond forces it to treat the second parameter as a
string (if that does not work for you, try ^extensions\.polarion\.com$
instead.)

In the second rule, you want to redirect only requests to /, so you
need to anchor it with ^/$.

And don't forget that you will also need:
RewriteEngine on

Other than that, it should work fine. But I suggest you test these
rules in a test environment first before commiting them to your
production machine.

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://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