Thank you Filipe,<br><br>It works, have a nice day.<br><br>David<br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 5:28 PM, Filipe Brandenburger <span dir="ltr"><<a href="mailto:filbranden@gmail.com">filbranden@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<div class="im"><br>
On Thu, Jul 23, 2009 at 10:46, David Hláčik<david@hlacik.eu> wrote:<br>
> RewriteCond %{HTTP_HOST} <a href="http://extensions.polarion.com" target="_blank">extensions.polarion.com</a><br>
> RewriteRule / <a href="http://extensions.polarion.com/polarion/extensions/" target="_blank">http://extensions.polarion.com/polarion/extensions/</a><br>
<br>
</div>Usually those would be regexps, so the right syntax for what you want<br>
would be something like:<br>
<div class="im"><br>
RewriteCond %{HTTP_HOST} =<a href="http://extensions.polarion.com" target="_blank">extensions.polarion.com</a><br>
RewriteRule ^/$ <a href="http://extensions.polarion.com/polarion/extensions/" target="_blank">http://extensions.polarion.com/polarion/extensions/</a><br>
<br>
</div>The "=" in RewriteCond forces it to treat the second parameter as a<br>
string (if that does not work for you, try ^extensions\.polarion\.com$<br>
instead.)<br>
<br>
In the second rule, you want to redirect only requests to /, so you<br>
need to anchor it with ^/$.<br>
<br>
And don't forget that you will also need:<br>
RewriteEngine on<br>
<br>
Other than that, it should work fine. But I suggest you test these<br>
rules in a test environment first before commiting them to your<br>
production machine.<br>
<br>
HTH,<br>
Filipe<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br>