[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Rewrite engine problem
- Subject: [cobalt-users] Rewrite engine problem
- From: Tomás García Ferrari <tgf@xxxxxxxxxxx>
- Date: Sat Mar 9 05:09:01 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
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!
Any ideas?
Regards,
Tomás
+-- --+
Tomás García Ferrari
Bigital
http://bigital.com/
+-- --+