Reputation: 79
When I created my webpage on IIS Windows Server 2012 and click on the links to switch between pages the first link works perfect as expected. When you click on another link that resides in another folder I receive a 404 Error.The Alias is causing my web page to fail. If I add the Alias then it works perfect. But it has to be done manually within the URL.
Heres an example of how the link is displayed. This works perfect as expected. http://localhost/MyAlias/Folder/webpage.aspx.
When you click on a different link that resides in a different folder in VisualStudio it drops the Alias and causes a 404 Error. http://localhost/Folder2/webpage2.aspx. Why is the Alias being removed if I applied it to my website? Thanks in advance.
Upvotes: 0
Views: 42
Reputation: 734
It is just related to how you link your second page. You have to link it with '../'
Here an example:
<a href="../Folder2/HtmlPage2.html">../Folder2/This is the link for page 2</a>
Upvotes: 1