question

TerryChan-5178 avatar image
0 Votes"
TerryChan-5178 asked ElsieLu-MSFT commented

SharePoint host named site collection url redirection

I tried the steps below to set up url rewrite for SharePoint 2016 host named site collection.
https://www.imaginet.com/2017/step-step-tutorial-iis-redirectrewrites-sharepoint/

for symmetrical rewrite mentioned in
https://support.microsoft.com/en-us/office/supportability-of-rewrites-and-redirects-in-sharepoint-2016-2013-2010-and-2007-a74a19f2-a59a-4b39-8be4-ce63e50139fa?ui=en-us&rs=en-us&ad=us

But the rewrite failed. I wonder whether it works for SharePoint 2016 host named site collection?

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ElsieLu-MSFT avatar image
0 Votes"
ElsieLu-MSFT answered ElsieLu-MSFT commented

Hi @TerryChan-5178 ,

You could try to use AAM to configure the full URL. Alternate Access mappings in SharePoint allows you to create multiple URLs for the same web application. This will helps users from the internal company network users to access the intranet site by simply using http / https URL and forcing outside the network users accessing it from the internet to use the fully-qualified domain name.

Here are some blogs about how to cofigure AAM step by step you could have a look:
Configure alternate access mappings SharePoint 2016 step by step
SHAREPOINT 2016: HOW TO IMPLEMENT ALTERNATE ACCESS MAPPING

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

Reference:
Configure alternate access mappings for SharePoint Server


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, Elsie. I know there is AAM but what I need is to redirect from one site to another, so I ask about whether url rewrite or redirect work for SharePoint 2016 host named site collection. Also, are the steps for url rewrite provided in the previous link correct or not?

0 Votes 0 ·

Hi @TerryChan-5178 ,

Thanks for your reply. AAM is usually the recommended method for site url redirection in SharePoint On-prem. As mentioned in the blog above, this is a method that Microsoft does not support, and risks need to be considered. I recommend using AAM. If you have any doubts about the method in the blog, I would suggest you ask the author for help.

Thank you for your support and understanding. :)

0 Votes 0 ·

Hi @ElsieLu-MSFT

Noted with thanks.

0 Votes 0 ·
Show more comments