Secondary Domain Adds Extra Folder in URL during Postbacks
Posted
by Joshua
on Stack Overflow
See other posts from Stack Overflow
or by Joshua
Published on 2010-06-05T14:40:13Z
Indexed on
2010/06/05
14:42 UTC
Read the original article
Hit count: 405
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.
© Stack Overflow or respective owner