the-dream
10-13-2010, 02:38 PM
Hey Guys,
I've done a search for this but can't quite find an answer, I want to use mod_rewrite in .htaccess to rewrite GET query strings. Instead of changing a space from " " to "%20" I want it to change to a "+".
Eg...
http://select.ly/s/?q=John%20Smith
becomes...
http://select.ly/s/?q=John+Smith
On submission of a form, I know I could use JavaScript at the submission of the form to replace all the spaces with "+". But I want to do this on the server-side.
Your help would be greatly appreciated.
I've done a search for this but can't quite find an answer, I want to use mod_rewrite in .htaccess to rewrite GET query strings. Instead of changing a space from " " to "%20" I want it to change to a "+".
Eg...
http://select.ly/s/?q=John%20Smith
becomes...
http://select.ly/s/?q=John+Smith
On submission of a form, I know I could use JavaScript at the submission of the form to replace all the spaces with "+". But I want to do this on the server-side.
Your help would be greatly appreciated.