You can use the Script Editor Webpart. Add it to home.aspx and use one of the examples at https://www.w3schools.com/howto/howto_js_redirect_webpage.asp.
Redirect SharePoint Urls
Hello,
I am wanting to redirect the homepage url to one main url. Currently users are getting the homepage using 3 different urls somehow. The main url is /Pages/Home.aspx
I'd like to totally redirect the 2 following urls but unsure where to set this redirect
/pages/home.aspx
/pages/Home.aspx
Thanks In Advance For Any Help
3 answers
Sort by: Most helpful
-
-
Echo Du_MSFT 17,116 Reputation points
2020-08-21T09:43:11.027+00:00 You can refer to the following code:
Ps: You must add a Script Editor web part on the specific site.
19464-script-urls.txt----------
@Dez-4361
If the response is helpful, please click "Accept Answer" and upvote it. -
sadomovalex 3,626 Reputation points
2020-09-14T15:15:53.5+00:00 hello,
script editor web part uses javascript approach. With this approach javascript code will run once page will be loaded i.e. user will see original page before redirection. If you use Sharepoint on-prem than as an alternate approach you may use Url rewrite IIS module in order to force lowercase urls for specific pages. Here is example of such rules: IIS7 rewrite rule that forces lower case for specified pages on domain