mod_rewrite Help Needed
Hey all,I need a bit of help with mod_rewrite - or anything else that will help me with this problem.
I have a problem with a specific browser, that does not urlencode its links, so if there is a space in the url, it is sent directly to apache with the space, rather than a %20. So, you're probably saying, "just use another browser, or get rid of the space before the request is sent." Unfortunately, this can't be done.
I have a patch for apache that will fix this, but I cannot apply it because I'm running Ensim on this server and I cannot recompile apache.
I want to use a mod_rewrite statement to remove the spaces from the request before it is processed by apache, my problem is that after reading everything I could find on the subject, I still don't grasp how to use it to suit my needs.
I attempted using a rewritemap to call a perl script I wrote to remove the spaces, but I get an Internal Server Error (script is properly chmodded and such).
I tried sending fake 200 headers back to the browser, no luck.
I tried using HTTP::Request and HTTP::Request::Common to send a modifed request to apache, no luck.
What I'm interested in finding out, is if anyone could help me write a rewrite statement that uses regex to remove the space without calling an external file.
If anyone could help me with this problem, I would really appreciate it. Thanks!