Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: ocean10000
Basically, they are indexing www.mydomain.com/index.asp and also www.mydomain.com
I was going to use an asp script to redirect 'index.asp' to '/' based on the server variable 'URL', however I've found that using request.servervariables produces exactly the same results whether I use www.mydomain.com/index.asp or just www.mydomain.com
Anyone any ideas how I can flick www.mydomain.com/index.asp to www.mydomain.com?
Thanks in advance!
Unless I am totaly wrong and have not found the answer.
The trick you could do is set a different document as defalt page for root directory, and 301 index to it, but this is untill someone links to that new document, so no purpose there.
You can do a lot in the Application_BeginRequest event in Global.asax.vb. You intercept specific pages using:-
and then use:-
It is what Isapi filters do but within .NET itself.