Change all hyperlinks at once RRS feed

  • Question

  • Hello,

    Is there a way to update all hyperlinks within a sharepoint environment? A lot of links have the full adres as a link in case of /subsite/documentlibraryname


    Friday, February 18, 2011 12:20 PM


All replies

  • Need some more info:
    What kind of links are these - links for sites, or hyperlinks entered by users as content
    Why woulld you want to change all links at one? Is your web application URL changing?


    Tuesday, February 22, 2011 4:39 AM
  • Hi Dennis,

    I’m afraid that there is not an OOB solution to change all hyperlinks at once within a SharePoint site so far.

    If your web application URL is changed, and if the previews site is stopped, you can redirect it to the URL follow this blog. http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=48
    Or you can try to add a script in to modify URL. Please refer to goserver’s reply in this thread.

    Thanks & Regards,

    • Marked as answer by Leoyi Sun Friday, February 25, 2011 2:38 AM
    Tuesday, February 22, 2011 8:09 AM
  • Sharepoint controls the links using alternate access mappings - OTB feature which works similar to IIS Url rewrite module. You can add AAM in Central Administration > Application Management > Configure alternate access mappings. After you add new AAM for your site (e.g. http://example.com), all intenral links on all html pages will reference to http://example.com/... (of course if you will access your site using http://example.com address). Another option as I already mentioned is try to use IIS Url rewrite module.
    Blog - http://sadomovalex.blogspot.com
    CAML via C# - http://camlex.codeplex.com
    • Marked as answer by Leoyi Sun Friday, February 25, 2011 2:38 AM
    Tuesday, February 22, 2011 1:17 PM