Select to view content in your preferred language

Systematically redirect traffic from one Hub Site to another?

634
4
Jump to solution
02-18-2026 07:02 AM
MRantala
Emerging Contributor

Hello,

We published a public Hub site with a domain, https://2024cha-carver.hub.arcgis.com/.  But then re-worked with the goal of improving accessibility and published that with a new URL https://cha2024-carver.hub.arcgis.com/

We've updated the link on our main website but are still getting some traffic to the old site. Other than adding a splash page to the old site informing users of the new site, is there any more systematic way to do a 301-style redirect of traffic?

Thanks for any ideas!  

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
AndrewTurner
Esri Contributor

Yes, you can add the redirect metatag to your header

<meta http-equiv="refresh" content="0; url=https://cha2024-carver.hub.arcgis.com">

 
However, if you add this then you will not be able to use the Hub layout editor for that site as it will redirect.

If you need to edit the site afterwards, you can remove this technically by editing the item data JSON in the `

headContent`. 
 
In the future, we will consider adding a more explicit option in the Site workspace settings.

View solution in original post

4 Replies
AndrewTurner
Esri Contributor

Yes, you can add the redirect metatag to your header

<meta http-equiv="refresh" content="0; url=https://cha2024-carver.hub.arcgis.com">

 
However, if you add this then you will not be able to use the Hub layout editor for that site as it will redirect.

If you need to edit the site afterwards, you can remove this technically by editing the item data JSON in the `

headContent`. 
 
In the future, we will consider adding a more explicit option in the Site workspace settings.
MRantala
Emerging Contributor

I haven't gotten this to work in my test site (https://test20260218-from-carver.hub.arcgis.com/), it is just showing the html as text. Not sure what I'm doing wrong. Attaching screenshots of where I'm setting the custom HTML in the header and what I set it as. 

Seems like <meta> is an unrecognized tag to me--did find this list of supported HTML elements, and it's not listed. https://doc.arcgis.com/en/hub/sites/add-text-and-images.htm#ESRI_SECTION1_15E3903373B04DF391D6DF5D15...

0 Kudos
MRantala
Emerging Contributor

Ok, I figured out that I was indeed trying to enter the <Meta> tag in the wrong location. This is a separate spot to add Meta Tags by going to Settings-Meta Tags for the site. I had some trouble  getting the save Setting button in enable so ended up using ArcGIS Assistant to add the tag there. 

0 Kudos
MRantala
Emerging Contributor

Awesome, thanks. I am going to build a couple of test sites to verify and make sure I've got the process correct.

0 Kudos