On Fri, Apr 22, 2011 at 12:25 PM, Hetz Ben Hamo <[email protected]> wrote:
> Sorry, I copied the wrong lines. Here is the correct copy, with the same > issue: > > <VirtualHost *:80> > ServerAdmin [email protected] > DocumentRoot /home/xxx/hetz-biz > ServerName blog.hetz.biz > ErrorLog /home/xxx/logs/vps-net_biz-error_log > LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" > combined > CustomLog /home/xxx/logs/vps-net-biz-access_log combined > > Options +FollowSymLinks > RewriteEngine On > RewriteOptions Inherit > RewriteCond %{HTTP_HOST} ^blog\.hetz\.biz$ [NC] > RewriteRule ^(.*)$ http://vps.net.bz/$1 [R=301,L] > </VirtualHost> > > > 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. 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. Finally, if all else fails; Why do you need RewriteRule anyways? :) What's wrong with: Redirect permanent / http://vps.net.bz/ ? -- Shimi
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
