Page 1 of 1

mod_rewrite query strings with spaces

PostPosted: 13. March 2016 04:31
by artoo_s
Hi,

I am using php's urlencode() to encode any query strings that may have spaces and that replaces the space with a '+' and was wondering what mod_rewrite rule would allow me to change the plus to an underscore?
The few examples that I've found didn't seem to work that well.

Thanks

Re: mod_rewrite query strings with spaces

PostPosted: 13. March 2016 12:04
by Nobbie
You cannot replace all occurences of + into an underscore, that is not the way RewriteRule does work.