Answered Redirect Sharepoint Root Site

  • יום שלישי 01 מאי 2012 16:27
     
     
    I am in need of simplifying our sharepoint URL by redirecting the root of my sharepoint site, sharepoint.domain.com, to the site collection, sharepoint.domain.com/sites/intranet.  I have been trying to use URL Rewrite to redirect the request with no luck.  Has anyone come up with a solution to this problem?  Thanks in advance.

    Rob

כל התגובות

  • יום שלישי 01 מאי 2012 18:08
     
     

    Assuming there is no content (or no site collection) at the root "/", you could move the site collection located at /sites/intranet:

    1. Take a site collection backup of /sites/intranet
    2. Delete the site collection at /sites/intranet
    3. Restore the site collection backup to /

    Jason Warren
    Infrastructure Specialist
    Habañero Consulting Group
    www.habaneros.com/blog

  • יום שלישי 01 מאי 2012 18:12
     
     
    Thanks for the response Jason.  Is there any way of doing this with a URL redirect instead of an entire site collection move?

    Rob

  • יום שלישי 01 מאי 2012 18:22
     
     

    Do you want to hide the fact that users are browsing to sharepoint.domain.com/sites/intranet or is it OK that they know they are going there? If its OK then there are tons of ways to issue a 301 redirect (IIS can do this, there is a redirect publishing page that can do this, javascript can do this)...

    If you want to hide the redirect from them, URL Rewrite is the way to go but i believe its unsupported in SP2010.

    Moving the site to the correct url is probably easier than URL Rewrite anyway.


    Please mark my response as an answer if appropriate.
    Learn.SharePoint.com

  • יום שלישי 01 מאי 2012 18:34
     
     
    I do not need to hide the fact that they are browsing to sharepoint.domain.com/sites/intranet.  Just an easier way of getting to that url without knowing the full path.  My only fear with using the builtin IIS redirect is that I have seen it propagate down to all subfolders and vdirs.  That can be a pain to re-configure.

    Rob

  • יום שלישי 01 מאי 2012 18:41
     
     

    Not a fan of "Only redirect from this directory, and not subdirectories" setting?


    Please mark my response as an answer if appropriate.
    Learn.SharePoint.com


  • יום שלישי 01 מאי 2012 18:45
     
     

    I have used that exact setting in Exchange 2010 deployments and the redirect continued to propagate to all subdirectories.  Not sure if that was just a bug in Exch2010 or not.  Even the official Exch2010 documentation show me removing the inherited settings from all subdirs http://technet.microsoft.com/en-us/library/aa998359.aspx

    If you think that is just an isolated incident on exchange servers (which it may be some backend exchange process replicating that) I am willing to give that a shot on my sharepoint server.


    Rob

  • יום שלישי 01 מאי 2012 20:59
     
     תשובה
    You could try "Site Actions" > "Site Settings" > "Welcome Page".  You can set the default landing page here.

    Paul Turner http://redmanta.co.uk/blog Twitter: @RedMantaUK MCTS:WSS,MOSS,2010 MCITP:2010.
    Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

    • סומן כתשובה על-ידי Rock Wang– MSFT יום שני 14 מאי 2012 08:45
    •