httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo>
Subject Re: [users@httpd] RewriteMap appending %0d to end of url
Date Wed, 15 Nov 2006 10:05:56 GMT
* wrote: 

> I'm attempting to use RewriteMap to do some complex url rewriting.  The
> problem I'm running into is that for some reason my urls end up with a
> %0d appended to the end.  I have searched the net for solutions and have
> found several people with the same problem but have not found a solution.
> I believe this problem is specific to apache on windows and specifically
> deals with the difference between a windows newline and a unix newline,
> but can't guarantee that.

Yes, the c runtime makes perl see a \r\n instead of the \n, mod_rewrite 
sends and vice versa. You can avoid that by switching stdin and stdout to 
binary mode (2.2 fixes that in mod_rewrite, iirc).


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message