Forum Moderators: open
I've my main script (index.asp) in the root which redirects based on UA/IP to:
../cloaked/X.html if its a person &
../cloaked/Y.asp if its a SE.
Y.asp is a dynamically-generated template page into which all my product content gets placed (using?ID=2345)
When the main script (index.asp) gets parsed, it correctly serves the Y.asp page to the SE.
Unfortunately none of the asp code now works on Y.asp. (It does when I go to Y.asp directly)
Eg - I visit index.asp?ID=123 and I get redirected to Y.asp but I want Y.asp?ID=123.
How do I get the Win2K server to process my 2 asp scripts in a row?
Thanks all
J
(Mods - Not sure if this is in the right place?)
Heres how its working:
Theres a GET request to the server.
The server looks at the requested file.
It sees ASP code which it processes.
The ASP code tells it to serve another ASP page which it does.
But it doesn't bother to process the ASP code on the 2nd ASP page...
The 2nd page appears with its <%...%> showing in the browser.....
You do not want to cloak via a redirect. It sends a 302 header out and it's a surfire way to get in trouble fast.
Besides in your first redirect method /cloaked/Y.asp would be indexed in the search engine..not a different version of /cloaked/X.html
Using one script is a good idea.
<%
if IP/UA = searchengine
response.write something
else
response.write somethingelse
end if
%>
You can also use any other server side method to do this like xmlhttp.
I know I redirect all the time to a second asp page and it parses fine. Sounds like sme strange server setting.