Include URL rewrites in search results

Posted by Community Admin on 03-Aug-2018 14:54

Include URL rewrites in search results

All Replies

Posted by Community Admin on 14-Jul-2015 00:00

I'm looking into the possibility of using URL rewrites. Below is an example of the URL rewrite I am using.

<rule name="Topic Rewrite" stopProcessing="true">
 <match url="^topics/([^$]+)" />
 <conditions>
<add input="URL" negate="true" pattern="action/edit" />
 </conditions>
 <action type="Rewrite" url="topics?id=R:1" />
</rule>

Now when using the Sitefinity search results widget, the URL rewrites do not appear in the search results. How can I go about including them in the search results?

Posted by Community Admin on 17-Jul-2015 00:00

Hi Sean,

Please note that Sitefinity uses IContentLocatableView interface implemented on the out of the box content widgets in order to track their locations on different pages. This interface powers the Search indexing and the correct resolving of the links in it. It tells Sitefinity where the specified type of content is placed on the site and properly displays the links in the search results. So, the indexed items will appear in the search results with the links to the pages where they are rendered in Sitefinity.

What i assume is that when the item is clicked then the rewrite rule you have implemented should be applied and the user should be redirected to this url.

Regards,
Sabrie Nedzhip
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed