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

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,236 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,817 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Trevor Seward 11,691 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,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.

    0 comments No comments

  3. 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

    0 comments No comments