neilbottomley
Technical User
Hi,
i'm experiencing a problem when using the "-" character in a Rewrite Map
I have the following entry in httpd.conf
RewriteMap my_map txt:/apps/content/rewrite.txt
And the following line in the file /apps/content/rewrite.txt
/x-trace
When I hit I get a 404 error. If I look at the rewrite log I can see the engine working but when it comes to looking up the entry in the map it only seems to pick up the /x part when using the key, ie
X.X.X.X - - [30/Jun/2006:17:14:52 +0100] [X.X.X.X/sid#f0060][rid#1d3eb0/initial] (6) cache lookup FAILED, forcing new map lookup
X.X.X.X - - [30/Jun/2006:17:14:52 +0100] [X.X.X.X/sid#f0060][rid#1d3eb0/initial] (5) map lookup FAILED: map=ouk_rewrites[txt] key=/x
Is there some way I can escape the "-" character in this map? A backslash doesn't seem to work. (
Thanks in advance and apologies if my terminology isn't up to scratch !!!
i'm experiencing a problem when using the "-" character in a Rewrite Map
I have the following entry in httpd.conf
RewriteMap my_map txt:/apps/content/rewrite.txt
And the following line in the file /apps/content/rewrite.txt
/x-trace
When I hit I get a 404 error. If I look at the rewrite log I can see the engine working but when it comes to looking up the entry in the map it only seems to pick up the /x part when using the key, ie
X.X.X.X - - [30/Jun/2006:17:14:52 +0100] [X.X.X.X/sid#f0060][rid#1d3eb0/initial] (6) cache lookup FAILED, forcing new map lookup
X.X.X.X - - [30/Jun/2006:17:14:52 +0100] [X.X.X.X/sid#f0060][rid#1d3eb0/initial] (5) map lookup FAILED: map=ouk_rewrites[txt] key=/x
Is there some way I can escape the "-" character in this map? A backslash doesn't seem to work. (
Thanks in advance and apologies if my terminology isn't up to scratch !!!