I'm having problems with the Next [N] flag in mod_rewrite
I want to replace ALL slashes (/) in url with an underscore. I have tried many regular expressions that work well for any other language, but mod_rewrite does not. How:
/ _ [N] or (.*)/(.*) $1_$2 [N]
But mod_rewrite seems to go into an infinite loop.
I need a procedure that works for the X number of slashes, not limited to, for example, 3 or 4 slashes.
Thanks.
source share