[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Rewrite engine problem



On Saturday 09 March 2002 04:10 pm, you wrote:
> Hello,
>
> I'm facing a problem. I have to add a 'RewriteRule' to a virtual server on
> our RaQ and I found out that the RaQ is already using the Rewrite engine
> (doing something that I don't fully understand...) If I try to add an extra
> RewriteRule to the configuration, the whole server stops working...
>
> Here is the original one:
> ---
> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^my.ip.num.ber(:80)?$
> RewriteCond %{HTTP_HOST}                !^my.host.name(:80)?$
> RewriteRule ^/(.*)                      http://my.host.name/$1 [L,R]
> RewriteOptions inherit
> ---
>
> I don't understand why is this rule needed... Is just rewriting everything
> directly to itself? And if I add an extra RewriteRule, before this one
> (supose that I have to move /test to /temp, my rule would say:
>     RewriteRule ^/test/(.*)$ /temp/$1 [R]
> ), it doesn't work!
>
RewriteRule ^/test/(.*)$ /temp/$1/$2 [R]
assuming you *are* going to a directory

--
Gerald Waugh