[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] [RaQ4] Apache rewrite rules question
- Subject: [cobalt-users] [RaQ4] Apache rewrite rules question
- From: "oxfordmusic.net" <lists@xxxxxxxxxxxxxxx>
- Date: Fri Jan 9 06:17:00 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
i am trying to set up some rewrite rules on my RaQ4 so that:
http://www.domain.com/test/keyword/info1
gets redirected to
http://www.domain.com/test/index.php?k=keyword&i=info1
i have done this successfully on a plain linux box but the the RaQ4's
httpd.conf is confusing me and i can't work out how to do it.
my httpd.conf currently has within <VirtualHost ip.ad.dr.es>ServerName
www.domain.com:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^ip.ad.dr.es(:80)?$
RewriteCond %{HTTP_HOST} !^www.domain.com(:80)?$
RewriteRule ^/(.*) http://www.domain.com/$1 [L,R]
RewriteOptions inherit
now i have been trying by adding:
RewriteCond %{HTTP_HOST} /test/
RewriteRule ^/test/(.*)/(.*)
http://www.domain.com/test/index.php?k=$1&i=$2 [L]
between the RewriteEngine rule and the first RewriteCond rule, but it
doesn't seem to be working.
i have 100+ domains on this box but i only want this to apply to this one
domain.
can anyone give me some pointers?
cheers
andy