[Gllug] apache RewriteMap

gllug at uncertainty.org.uk gllug at uncertainty.org.uk
Thu Dec 6 23:24:15 UTC 2001


Hi All,
	I have been trying to set up some url mapping in apache with no
success :(

it looks staightforward enough


RewriteEngine on
RewriteMap mymap  txt:/var/www/mymap.txt
RewriteRule ^(.*)$ $(mymap:$1|$1)


a request http://localhost/foo

I am expecting 'foo' to be the value recieve by the RewriteRule

this should be passed to the map -- if mymap.txt looks like
foo               bar

the the rule should cause apache to look for the file bar

if foo bar is the only entry in mymap.txt then all other urls should be
treated as normal 


BUT IT DOESN'T WORK !!!! :-{

the server keeps returning foo not bar :(

am I missing something obvoius ???

any help much appreciated

I am also looking for more docs beyond     
http://httpd.apache.org/docs/misc/rewriteguide.html
http://httpd.apache.org/docs/mod/mod_rewrite.html

-- 

Sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 274 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20011206/ba73116f/attachment.pgp>


More information about the GLLUG mailing list