How to use Sharepoint URL without port number - Alternative URL
-
09-12-2019 - |
Question
if have a site url address : http://intranet.domainname.com:9999
How can i also use this url address:
http://intranet.domainname.com
without the port number
Do i have to use Alternate Access Mapping for this or just change the host header?
I would also want SharePoint to know about this and resolve it correctly. So that i won't have issue with url to documents or lists moving forward
Cheers
Solution
however if this application already exists you can do one of the following:
Extend the web app and give this extended web app a url of intranet.domainname.com and host header with the same value. Choose port 80 as the port. I believe this is the best way. Read more here
As a quick fix you can create an empty web application with the address http://intranet.domain.com on port 80 and a host header which only redirects to your 9999 site. All this does is redirect... Users will see the port number after the redirection.
Delete the web app without deleting the content db and create a new web app and reattatch the content db.
Again the first is the one I would recommend going with. Let me know if you have any questions about these. Hope it helps!
OTHER TIPS
If the web application is set to use a specific port, you will be bound to that port even with a host header. So simply put, if you want to have http://intranet.domainname.com then you have to have the web application available on port 80.
Using host headers you can have lots of unique names available on the same server, so there really is no reason not to put SharePoint on port 80 for regular web applications.