<div dir="ltr"><div class="gmail_quote">On Fri, Apr 22, 2011 at 12:25 PM, Hetz Ben Hamo <span dir="ltr"><<a href="mailto:hetzbh@gmail.com">hetzbh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex">
<div dir="rtl"><div dir="ltr">Sorry, I copied the wrong lines. Here is the correct copy, with the same issue:</div><div dir="ltr"><br></div><div dir="ltr"><div class="im"><div dir="ltr"><VirtualHost *:80></div><div dir="ltr">
ServerAdmin <a href="mailto:hetz@benhamo.org" target="_blank">hetz@benhamo.org</a></div>
</div><div dir="ltr">DocumentRoot /home/xxx/hetz-biz</div><div dir="ltr">ServerName <a href="http://blog.hetz.biz" target="_blank">blog.hetz.biz</a></div><div dir="ltr">ErrorLog /home/xxx/logs/vps-net_biz-error_log</div>
<div class="im"><div dir="ltr">LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined</div>
</div><div dir="ltr">CustomLog /home/xxx/logs/vps-net-biz-access_log combined</div><div class="im"><div dir="ltr"><br></div><div dir="ltr">Options +FollowSymLinks</div><div dir="ltr">RewriteEngine On</div><div dir="ltr">
RewriteOptions Inherit</div>
<div dir="ltr">RewriteCond %{HTTP_HOST} ^blog\.hetz\.biz$ [NC]</div><div dir="ltr">RewriteRule ^(.*)$ <a href="http://vps.net.bz/$1" target="_blank">http://vps.net.bz/$1</a> [R=301,L]</div><div dir="ltr"></VirtualHost></div>
<div><br><br></div></div></div></div></blockquote><div><br>Let's continue then... since this domain (VirtualHost) won't be serving any OTHER traffic, there's no point at conditioning the rewrites (and putting them into our debug process). RewriteCond can be removed. <br>
</div></div><br>You've also placed a RewriteOptions Inherit. Which means the rewrite engine inherits some configuration from the global configuration - which is unknown to us. Unless you have a very good reason - please remove that too.<br>
<br>Finally, if all else fails; Why do you need RewriteRule anyways? :)<br><br>What's wrong with:<br><br>Redirect permanent / <a href="http://vps.net.bz/">http://vps.net.bz/</a><br><br>?<br><br>-- Shimi<br></div>