mod_rewrite query strings with spaces

Problems with the Windows version of XAMPP, questions, comments, and anything related.

mod_rewrite query strings with spaces

Postby artoo_s » 13. March 2016 04:31

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
artoo_s
 
Posts: 3
Joined: 10. December 2014 04:16
Operating System: Windows 7 Ultimate

Re: mod_rewrite query strings with spaces

Postby Nobbie » 13. March 2016 12:04

You cannot replace all occurences of + into an underscore, that is not the way RewriteRule does work.
Nobbie
 
Posts: 8762
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 48 guests