M
MS
I have an ASP.NET based site, and the main application is stored under a
virtual directory called "Main". So in order to view my site, a browser
would have to visit www.mydomain.com/Main/[default.aspx].
But if a browser just visits www.mydomain.com, he will NOT see my site
(since all the content is under the Main subdirectory). Currently, I use a
simple ASP redirect script in the root directory that will redirect the user
to the Main subdirectory. But such a redirect is generating a lot of bad
"Object Moved" errors in my log files and also interfering with search
engine bots that visit the site. Is there any ASP.NET setting under
web.config or somewhere else to make the browser automatically redirect to
my default web application without using a script-based redirect?
Thanks!
virtual directory called "Main". So in order to view my site, a browser
would have to visit www.mydomain.com/Main/[default.aspx].
But if a browser just visits www.mydomain.com, he will NOT see my site
(since all the content is under the Main subdirectory). Currently, I use a
simple ASP redirect script in the root directory that will redirect the user
to the Main subdirectory. But such a redirect is generating a lot of bad
"Object Moved" errors in my log files and also interfering with search
engine bots that visit the site. Is there any ASP.NET setting under
web.config or somewhere else to make the browser automatically redirect to
my default web application without using a script-based redirect?
Thanks!