On 18/07/07, Joshua Slive <[EMAIL PROTECTED]> wrote:
On 7/18/07, Andrew Dixon <[EMAIL PROTECTED]> wrote: > Hi. > > We have a RewriteMap configured and working fine, however we need to add a > URL to the map that contains a space. I have tried several different things, > but none of them work. What I have in the map file is: > > sub_page.asp/title/Paris > Outbound/section/General/editID/337 paris/outbound > > I have tried replacing the space with %20 and . (dot) and adding a \ before > the space but none of them worked. > > How do you escape a in the map file? I've never tried this myself, but I imagine what you need to do is match the encoding used on whatever the RewriteMap is called with. Use the RewriteLog to see what the encoding on the matched string is and duplicate that. You certainly can't use a bare space since space is the field delimiter. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hi Joshua. Here is what I got from the RewriteLog set on level 9 (highest). I assume the line we are looking for is: map lookup FAILED: map=citybreaksMap[txt] key=sub_page.cfm/title/Paris Outbound/section/General/editID/337 There is it with the space. Now, like you say you can't use the space as it is the field delimiter, any suggestions? Kind regards, Andrew