[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] RAQ3 Rewrite Rules
- Subject: [cobalt-users] RAQ3 Rewrite Rules
- From: Mark Mitchenall <mark@xxxxxxxxxxxxxxxxxx>
- Date: Sun Nov 2 07:59:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
I'm getting some strange behaviour with rewrites rules on a RAQ3. I
discovered it because we have a rewrite rule on one site which does the
following..
RewriteRule ^/([a-z]+)/([0-9]+\.html$ /$1.php?page=$2
If I have the URL...
http://www.domain.com/test/123.html
... I would expect it to go to...
http://www.domain.com/test.php?page=123
However, this doesn't work, but if I move the test.php script to another
directory and change the rewrite to...
RewriteRule ^/([a-z]+)/([0-9]+\.html$ /directory/$1.php?page=$2
..then it works.
On further inspection, I deleted the .htaccess file which had the rewrite
rules in and just tried the URL...
http://www.domain.com/test
... and the test.php script still came up?!?!? Where on earth is this
rewrite coming from? I've been through the httpd.conf, srm.conf and every
other .conf file I could find but I couldn't see any rewrite which would
cause this to happen. Everything in the conf files is as per the standard
settings put in by the coblat. Is this a "feature"?
TIA
Mark
--
Mark Mitchenall
StandingWave Ltd