[BNM] Rewriting b*tard back-to-front slashes
Jay Caines-Gooby
jay at gooby.org
Mon Nov 27 14:01:11 GMT 2006
Can anyone help me with this mod_rewrite conundrum?
I've got requests coming to my webserver of the form
\some\request\with\backslashes\not\forward\slashes
I need to rewrite this to:
/some/url/with/backslashes/not/forward/slashes
and to make things really awkward, there can be any number of
backslashes that need converting.
In a normal regex I'd just do $url ~= s/\\/\// but how do I do this as
a mod_rewrite rule?
Cheers,
Jay
--
Jay Caines-Gooby
jay at gooby.org
+44 (0)7956 182625
skype:jaygooby
http://snipperoo.com
http://blog.snipperoo.com
More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service