I have a website which i wanted to ran on locally, i ran it fine with no problems but since the website was downloaded from the host i had to change all the inner links which points online to local ones. I tried many things at first but nothing actually works until i used the following:
http:\localhost:portnumber\website……..
Now when i created a new folder and put the website in it and ran it again the port number changed thus all the links i have put inside is not working anymore and needed to change the port number again. Is there any solution for this problem instead of writing the localhost:portnumber and why does the port number changes each time its in a new folder ?
you can use relative paths for the links. if you really want to use specific port for the application try following steps,
To specify a port for the ASP.NET Development Server – WebSite / WebServices projects
ports and select False from the dropdown list.This will enable editing of the Port number property.
type in a port number.
settings.
To specify a port for the ASP.NET Development Server – Web Application project
“Properties”