Oct 1, 2018 03:23 AM
(This post was last modified: Oct 1, 2018 03:24 AM by n31ght0.)
I have project file that has subfolder for their main page. when run with visual studio the url will come like this:
localhost:port/website/production/login.aspx
i want to make it as root / without sub uri or *.aspx so just like this:
http://localhost:port/
How to do that? i have tried using this on web.config file:
adding "clear" and add value without "~/" make it working so i don't need to apply url rewriting or routing as it's only working on IIS and hard to me to try in visual studio because of less example on google. The problem is it load as what i want http://localhost:port/ but the CSS style and Javascript isn't load correctly may be because its on sub folder while web.config outside that folder make it read the CSS file on the place where web.config
localhost:port/website/production/login.aspx
i want to make it as root / without sub uri or *.aspx so just like this:
http://localhost:port/
How to do that? i have tried using this on web.config file:
Code
<defaultDocument>
<files>
<clear/>
<add value="website/production/login.aspx" />
</files>
</defaultDocument>adding "clear" and add value without "~/" make it working so i don't need to apply url rewriting or routing as it's only working on IIS and hard to me to try in visual studio because of less example on google. The problem is it load as what i want http://localhost:port/ but the CSS style and Javascript isn't load correctly may be because its on sub folder while web.config outside that folder make it read the CSS file on the place where web.config

