Forum Moderators: open
I'm a rooking to Javascript and am stuck on this problem. People come to my site as
[mysite.com?submittosearch=yes?state=CA?city=Sacramento?...] ...
And so forth. But we have shut down mysite. I dont want to redirect without the query string: is it possible to direct that person to:
[mysite2.com?submittosearch=yes?state=CA?city=Sacramento?...] ...
I.E., keep the search string but change the domain? I cannot do this on the server side; I.E., it has to be done with javascript or something on the client side. Can anyone help?
Thank you!
Then once you have the url query you just have to change the location:
document.location.href = "new_link";
Good luck!