Redirect from root to site collection

Copper Contributor
Hi there
 
I have created a root site collection with following http://"name".sharepoint.com

I want to auto redirect all users who browse to the root site collection to another site collection with this http://"name".sharepoint.com/test1 so that nobody can use root site collection.

 

Note: I don't want to Add content editor web part method adding script to webpart What can be the best solution.

 

Thanks for advices.

4 Replies

Hey @Matts Christensen,

 

Are you using the modern layout in your site?

Well, if you're not willinig to insert a script, I don't think there's much you could do. Just my two cents, though.

Although, from the top of my head, if you're familiar with the Sharepoint Framework, you could create an extension that just redirects the user to your desired site. Or maybe a Webpart, if you want it for just a page.

Lemme know if you need any help.

 

Regards,

Hi said he don't want to add the redirection in a script...something interesting since it's the way to make the redirection required

Hi @Carlos_Marins and @Juan Carlos González Martín 

 

Thanks for the Replies - All right if I have to use a Script what would it look like?  

 

Hi @Matts Christensen,

 

Using SharePoint Designer add redirect HTML code.

 

I.e. <meta http-equiv="Refresh" content="0; url=https://www.w3docs.com" />

 

Untitled.png

 

I hope this helps.

 

Norm