Forum Moderators: open

Message Too Old, No Replies

Server.Transfer / Server.Execute - Postback affects Spidering?

Using Server.Execute or .Transfer - Problems with postback

         

jerryleelewis

4:34 pm on Sep 9, 2004 (gmt 0)

10+ Year Member



I'm writing a website that for 'server issues' I have to redirect all my domains(e.g. www.example.com) to a their individual directory (e.g. www.example.com/AAA or www.example.com/Shop).
I've decided the Meta-refresh and 301 redirects are bad, so I stuck a common default.aspx file in the root folder (under www.example.com) which used Server.Transfer to run the default.aspx file in the appropriate directory (e.g. www.example.com/Shop or /AAA).

The problem I am questioning is there any downside to using this method in terms of keeping redirects to ZERO, to keep the search engine spiders happy.

My question is: If a customer goes to www.example.com (which runs the default.aspx) and does a Server.Transfer to the URL "www.example.com/Shop/default.aspx", the browser will still display "www.example.com". Now all Hyper links, should be ok (in terms of spidering), but are there any other circumstances which might cause problems for spidering? Of course buttons and postbacks aren't spiderable, which would end up displaying the "www.example.com/Shop/default.aspx" page in the web browser. Is that a redirect or does the web browser always know that the page it was displaying was the "/Shop/default.aspx", instead of what the browser displays ("www.example.com").
Hope you are all still with me! :-)
Basically, has anyone had any problems directing traffic using Server.Transfer from the start page of their website?

Cheers

[edited by: Xoc at 3:52 pm (utc) on Sep. 10, 2004]
[edit reason] use example.com [/edit]

raywood

2:11 pm on Sep 10, 2004 (gmt 0)

10+ Year Member



IIS has a unique way of handling requests. The ASP.NET has implemented what they call a pipeline and it has some features of the ISAPI filter. ASP.NET has an interface called IHttpModule. Using it you can do all kinds of clever redirects while maintaining sensible URL's that won't upset the search engines. I learned about it by using the Community Starter Kit from MS. Do a search for "community starter kit" AND "iis" AND "redirect". You will find some articles that explain how the redirects work using the IHttpModule interface.