Is it possible to set the "default web application" on a web server?

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!
 
S

Steve C. Orr [MVP, MCSD]

You can configure the root folder for your Default Web Site from within IIS.
Try pointing it to your Main folder.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top