URL Rewriting in FS4SP RRS feed

  • Question

  • Hi,

    I have some SharePoint documents on which I want to perform the url rewriting in FS4SP:

    As a example, Like the current url is :


    and I want to rewrite it to: http://sites/pages/a.aspx

    As URL crawled property is a read only, so which crawled property i can use to set the url ? Please share your thoughts


    Thursday, December 22, 2011 9:04 AM

All replies

  • Hi,

    If you want to rewrite to something else than just changing the server name you can change the xslt and modify the URL for your items. Just make sure all metadata needed to build the URL are present as managed properties.

    I tend to favor this, as it's really flexible to change the URL in any way you want. The caveat is that you put URL logic in the UI, and if you have more than one UI returning search results you would get code duplication.

    To solve this you can generate your custom URL as a separate crawled property in a custom extensibility stage, map this to a custom managed property, and use this in your UI if present.

    Mikael Svenson 

    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    Friday, December 23, 2011 7:38 AM