I've created a simple web application that include 3 web pages ; Home page , Register page and Login page . I've added a folder named Login and put Register page and Login page into it.(So the Home page is in the root directory and Login and Register pages are in the Login directory).Also i've added a ul tag with 3 li tags as menu ; Home , Register and Login .
<ul>
<li><a href="HomePage.aspx">Home</a></li>
<li><a href="Login/LoginPage.aspx">Home</a></li>
<li><a href="Login/RegisterPage.aspx">Home</a></li>
</ul>
For example , i start the HomePage , so in the address bar, address is : " //localhost:3120/HomePage.aspx" then if i click Register from the menu, the Register page will be opened . In this case the address is : " //localhost:3120/Login/RegisterPage.aspx " The problem is that ,if in the Register page i click again the Home from menu items ,on the address bar the address will be: " //localhost:3120/Login/HomePage.aspx" ("/Login" is added before "/HomePage") and "The resource cannot be found" error will be appeared.