Redirect SharePoint Urls

Msdc 271 Reputation points
2020-08-19T17:46:01.967+00:00

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

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

3 answers

Sort by: Most helpful
  1. trevorseward 11,711 Reputation points
    2020-08-20T16:19:50.87+00:00

    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.

    0 comments No comments

  2. Echo Du_MSFT 17,316 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.

    0 comments No comments

  3. sadomovalex 3,636 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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.