How to remove the :port number from the end of an IIS URL?

AlbatrossCafe

In IIS, I noticed when you use the default ports (80 for http and 443 for https) the port number doesn't display at the end of the URL in your browser. However, if you use a different port it will display.

Example: Default port generates link: http://www.example.com

Custom port generates link: http://www.example.com:8301

Is there a setting you can change to make the port (in this case, :8301) not display without using the defaults?

Yeldar Kurmangaliyev

80 is a default port for HTTP connections. http://example.com = http://example.com:80

443 is a default port for HTTPS connections. https://example.com = https://example.com:443

If you are hosting on an other port, you have to include it in the URL.
It's not a IIS rule - it's about HTTP in general. You cannot configure the server in such way that http://example.com will work with port 8301 and I can't imagine any situation when it can be useful. I strongly believe that 80 port is chosen by default on a browser-side but not assigned on a server-side.

If you want users to reach this website by http://example.com URL and it must be a main page then swap your 8301 and 80 ports WebSites' bindings.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can remove the port number from live vue site url?

How to remove a number from the end of an URL using .htaccess?

Remove port number from a url in java

forward the domain and remove the port number from the URL

How to remove or hide port no from url?

How do you remove the port number :8000 from project-open url links?

Remove port number in image url?

Nginx remove port number :8080 in the url

How to remove % sign from end of number in dataframe in R

How to get the port number from the URL using jQuery?

How to remove the backlash from the end if the URL in Swift iOS

IIS Rewrite - Remove real folder from the URL

How to remove the inserted page number from url in Gatsby

How to remove large number of entries from url history in Firefox?

How to remove URL from WooCommerce My account order number

How to remove an anchor in a url with IIS rewrite module?

Remove replicate number from end of string

Get URL and port number from view

Remove slashes from Start and end of the URL

How to remove port number 8080 from my domain name using nginx v1.14.1?

How to remove cells that end with a certain number of digits?

How to connect url with port number in java with Jsoup?

How to remove duplicate content in end of url?

How to remove N number of bytes from end of file, only if they match a specified array of bytes

How can I remove a number of characters from the beginning and end of a variable in R?

How can I remove a specific number of bytes from the beginning and end of a file using python?

How to fetch the Machine Name ,Protocol and Port number from URL format using regular expression?

How to find ip number from IIS Server?

Remove Page Number from URL with .htaccess