locked
URL redirection RRS feed

  • Question

  • We are migrating from WSS 2.o to MOSS 2007. Its a completey new environment with new hardware. The URL's are different in WSS 2.0 and MOSS.

    AS most of the users have bookmarked the WSS 2.0 site, what we want is when the user enters his old url it should get redirected to new MOSS site.

    WE have around 200 site collections in WSS which will be migrated in MOSS.

    For Eg.

    old wss sites                                       new MOSS site

    http://jack.ee.abc.com                       http://ee.abc.com/jack
    http://tom.ee.abc.com                       http://ee.abc.com/tom

    Above is the old site collection and new site collection.

    Kindly help..

    Thanks
    Nez
    • Edited by llanezll Friday, August 14, 2009 4:57 AM Change
    Friday, August 14, 2009 4:43 AM

Answers

  • Hii,

    You can redirect using Alernative Access Mapping(AAM) from Central Administration
    for detail abt AAM refer, http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?List=0ce77946-1e45-4b43-8c74-21963e64d4e1&ID=8


    or
    also you can do this by using IIS setting for that please check http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=48


    Hope this helps!!!

    regards,


    N i T i N
    Friday, August 14, 2009 5:30 AM

All replies

  • Hii,

    You can redirect using Alernative Access Mapping(AAM) from Central Administration
    for detail abt AAM refer, http://sharepoint.microsoft.com/blogs/fromthefield/Lists/Posts/Post.aspx?List=0ce77946-1e45-4b43-8c74-21963e64d4e1&ID=8


    or
    also you can do this by using IIS setting for that please check http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=48


    Hope this helps!!!

    regards,


    N i T i N
    Friday, August 14, 2009 5:30 AM
  • AAMs do not redirect...

    When a browser requests a page or program on your Web site, the Web server locates the page identified by the URL and returns it to the browser. When you move a page on your Web site, you can't always correct all of the links that refer to the old URL of the page. To make sure that browsers can find the page at the new URL, you can instruct the Web server to redirect the browser to the new URL.

     

    You can redirect requests for files in one directory to a different directory, to a different Web site, or to another file in a different directory. When the browser requests the file at the original URL, the Web server instructs the browser to request the page by using the new URL.

     

    IIS6 http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/6b855a7a-0884-4508-ba95-079f38c77017.mspx?mfr=true

     

    To redirect requests to another Web site or directory

    1.     In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.

    2.     Click the Home Directory, Virtual Directory, or Directory tab.

    3.     Under The content for this source should come from, click A redirection to a URL.

    4.     In the Redirect to box, type the URL of the destination directory or Web site. For example, to redirect all requests for files in the Catalog directory to the NewCatalog directory, type /NewCatalog.

     

    To redirect all requests to a single file

    1.     In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.

    2.     Click the Home Directory, Virtual Directory, or Directory tab.

    3.     Under The content for this source should come from, click A redirection to a URL.

    4.     In the Redirect to box, type the URL of the destination file.

    5.     Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.

     

     

    You can use wildcards and redirect variables in the destination URL to precisely control how the original URL is translated into the destination URL.

    You can also use the redirect method to redirect all requests for files in a particular directory to a program. Generally, you should pass any parameters from the original URL to the program, which you can do by using redirect variables.

     

    To redirect requests to a program

    1.     In IIS Manager, expand the local computer, right-click the Web site or directory you want to redirect, and click Properties.

    2.     Click the Home Directory, Virtual Directory, or Directory tab.

    3.     Under The content for this source should come from, click A redirection to a URL.

     

    In the Redirect to box, type the URL of the program, including any redirect variables needed to pass parameters to the program. For example, to redirect all requests for scripts in a Scripts directory to a logging program that records the requested URL and any parameters passed with the URL, type /Scripts/Logger.exe?URL=$V+PARAMS=$P. $V and $P are redirect variables.

     

    4.     Select the The exact URL entered above check box to prevent the Web server from appending the original file name to the destination URL.


    -Ivan


    Ivan Sanders http://www.linkedin.com/in/iasanders http://dimension-si.com/blog
    Saturday, September 5, 2009 5:20 AM
  • If you are a site administrator like me and only have access to site collections not to the Central Administration and IIS, you can use an alternate approach using Content Editor Web Part and JavaScript.

    Here is the approach:

    1. Click on “Site Actions” > “Edit Page”
    2. Add Content Editor Web Part (CEWP) to a zone of your choice by clicking on “Add a Web Part”
    3. This will bring up “Add Web Parts – Webpage Dialog” windows
    4. If you don’t see “Content Editor Web Part” expand “All Web Parts” and it’s usually under “Miscellaneous” section
    5. Tick “Content Editor Web Part” and click on “Add” button
    6. Add content to CEWP either by clicking “open the tool pane” link or edit > Modify Shared Web Part
    7. The previous step will open the Web Part properties in the right pane of the page. Click on “Source Editor” button
    8. “Text Entry – Webpage Dialog” Window will open with blank page
    9. Add the following JavaScript to “Text Entry – Webpage Dialog” window and click “Save” button.

    <Html>
    <head>
    <script language="JavaScript">
    </script>
    <meta http-equiv="refresh" content="10;url=http://servername:3333/.../[subusite]">
    </head>
    <body>
    "Provide the Information you want to read the users"<a href=http://servername:3333/.../[subusite]>Click here to Continue>/a>
    </body>
    </html>

    10. Users will be directed to the new URL in 10 seconds (in the above script it’s 10 seconds. This value can be modified by changing content="10 value based on the content to be read on the page.)

    I recently posted this on my blog:
    http://moss2007solutions.blogspot.com/2009/08/redirect-sharepoint-site-to-new.html

    Thanks,
    Veera Reddy

    Saturday, September 5, 2009 1:00 PM
  • Both methods above are good. However if you are going to decommission your WSSv2 then I would suggest IIS method as listed by Ivan.
    Alpesh Nakar Blog: http://alpesh.nakars.com/blog | Twitter: @alpesh SharePoint Resources: http://www.justsharepoint.com | Twitter @justsharepoint
    Sunday, September 6, 2009 11:07 PM