...

View Full Version : URL Rewriting, Changes " " to "%20" need "+"



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.

120
10-14-2010, 07:49 PM
This may help:

http://www.webmasterworld.com/forum92/4423.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum