views:

14

answers:

0

My ASP.NET Website (C#, 3.5 framework, IIS7) is hosted at GoDaddy. There are multiple sites on the account. Currently when I perform postbacks or Response.Redirects on a secondary web site, the following URL appears in the address bar:

www.mywebsite.com/webfolder/default.aspx

Where the "webfolder" is the sub-directory on the server where the web site is hosted (i.e. SeverRoot/webfolder).

The site seems to work with or without the folder in the URL. Is there a way to remove the folder from the URLs during postback? I think I have to use URL Rewriting (which GoDaddy supports using Microsoft's Rewrite Module) but I'm not sure how.