Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with meta characters in Rewrite Map

Status
Not open for further replies.

neilbottomley

Technical User
Jun 30, 2006
1
GB
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. :eek:(

Thanks in advance and apologies if my terminology isn't up to scratch !!! :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top