Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 674251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:41:07+00:00 2026-05-14T00:41:07+00:00

I am editing a certain website which before used the port 80 (default) that

  • 0

I am editing a certain website which before used the port 80 (default) that was not required at the url (because it’s default..)

But the port had (for technical reasons) to be changed, and now it has to be informed.

I can access the main page through ip:port\page like this:

1.2.3.4:81\page.aspx

Every link in the website is composed like this:

<asp:HyperLink runat="server" Text="random" NavigateUrl="~/fdr/whatever.aspx" />

And whenever I click on a link, the page doesn’t load, but the URL is composed on the URL bar of the browser, then I simply add “:80” after the IP in the URL and it works.

Due to the existance of querystrings (in other words, for already having access to the URL) I before thought that ‘~’ in the beginning of a URL in a link was saying “keep in the same website, just change to this webpage in this folder”, but if the port vanishes, I assume now that the address is requested (probably to IIS) for the location of the current website.

I want to know then (instead of having to add the port to each link in my website) how do I set up whoever is requested by the ~ in the link to add the port somehow. How do I do that?

–[EDIT]–
Check this other question of mine for more info:

URL losing port number in every page load

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T00:41:08+00:00Added an answer on May 14, 2026 at 12:41 am

    It points to the current root directory of the asp.net app (which may live in a subdirectory of the website). It allows links to be coded independent from whether the app lives in the root folder or not.

    The Port / domain is never part of the game. Ports are assumed to be 80 -by your browser.

    That said, what please is the technical reason to move an app off port 80? I know of not a single valid reason, sorry 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While editing an aspx file I found both these opening tags used for seemingly
The changelist_view is great for editing certain fields for many entries, so I thought
Is it possible to disable editing in jqGrid for certain cells in a column
I am referring specifically to windows 7. I have code that associates a certain
We have a WCF service which will be accessed from outside systems. Under certain
When editing XAML in VS2008 SP1, the editor is really slow. devenv process seems
When editing HTML in emacs, is there a way to automatically pretty-format a blob
When editing an XML file in IntelliJ IDEA, if the document references a schema,
Sometimes when I'm editing page or control the .designer files stop being updated with
Often while editing config files, I'll open one with vi and then when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.