Forum Moderators: open

Message Too Old, No Replies

redirection troubles, how to change from page a to page b

         

dhaliwal

6:59 am on Jun 29, 2004 (gmt 0)

10+ Year Member



I want to have some help on redirection of the page

i have to redirect the person from

site.com/pageA.asp?search=web+hosting

to

site.com/pageB.asp?search=web+hosting

What my problem is that i am using <% searchstring %> for the word web+hosting or any other two words keyword

i get redirected to

site.com/pageB.asp?search=web%20hosting

%20 for the space character which i don't like at all, and also search engines don't like

Would love to see the code as a remedy

thanks in advance

korkus2000

5:10 pm on Jun 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you use the replace function on the outputted string?

dhaliwal

6:29 am on Jun 30, 2004 (gmt 0)

10+ Year Member



korkus

could you please explain the things a bit more, i don't know how to use the replace function you talked about.

could you please give a specific code for same

thanks a lot in advance for your time

korkus2000

1:19 pm on Jun 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<% =Replace("site.com/pageB.asp?search=web%20hosting", "%20", "+") %>

It is a VBScript function. You will have to do a little more code if you are using JScript.