It works, have a nice day.
David
On Thu, Jul 23, 2009 at 5:28 PM, Filipe Brandenburger <filbranden@xxxxxxxxx> wrote:
Hi,
Usually those would be regexps, so the right syntax for what you want
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/
would be something like:
The "=" in RewriteCond forces it to treat the second parameter as a
RewriteCond %{HTTP_HOST} =extensions.polarion.com
RewriteRule ^/$ http://extensions.polarion.com/polarion/extensions/
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