I am trying to do something very simple via a ASP script but can't figure
out how to do it.
Whenever a user goes our our website eg.
(http://www.sitea.com/scripts/script?Adata=xxx), I want it recirected to
http://www.siteb.com/script?Adata=xxx
I can do the simple direct via an REDIR.ASP script but cannot figure out how
to pass the rest of the data after www.sitea.com -> scripts/script?Adata=xxx
so that it gets passed along as well in the new redirect.
Any help would be appreciated.
Chris
Will this work for you?
Const cWWW = "http://www.siteb.com/script?"
Response.Redirect cWWW & Request.QueryString()
and simply replace the phrase 'sitea' with 'siteb' and pass that to the
Response.Redirect function.
Thanks
zoom
"McKirahan" <Ne...@McKirahan.com> wrote in message
news:OaWdnRH69M6KEh7a...@comcast.com...
[snip]
Yes, you could use
strURL = Replace(strURL,"sitea","siteb")
where "strURL" contains the URL.
However, your example said that you wanted
http://www.sitea.com/scripts/script?Adata=xxx
redirected to
http://www.siteb.com/script?Adata=xxx
so replacing "sitea" with "siteb" wouldn't work.