Forum Moderators: phranque

Message Too Old, No Replies

[help] Replace % with + url on .htaccess

         

dendyyoung

5:53 am on Mar 7, 2010 (gmt 0)

10+ Year Member



Please help me, how to replace % char with + char in url?

example:

domain.com/search/keyword1%keyword2.html
to
domain.com/search/keyword1+keyword2.html

thanks for the advice

jdMorgan

12:27 am on Mar 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you wish to replace characters in the URL, edit the page(s) which link to those URLs or modify the script that generates those pages. .htaccess is invoked *after* one of your links is clicked and the 'bad' URL has already been used to reach your server. At that point it is too late for anything the server might do to change the URL.

Jim