rewriterule help?
shimi
linux-il at shimi.net
Fri Apr 22 12:51:42 IDT 2011
On Fri, Apr 22, 2011 at 12:25 PM, Hetz Ben Hamo <hetzbh at gmail.com> wrote:
> Sorry, I copied the wrong lines. Here is the correct copy, with the same
> issue:
>
> <VirtualHost *:80>
> ServerAdmin hetz at benhamo.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110422/0605f7be/attachment.html>
More information about the Linux-il
mailing list