Removing trailing slashes gives me WCF troubles

Posted by Community Admin on 04-Aug-2018 14:47

Removing trailing slashes gives me WCF troubles

All Replies

Posted by Community Admin on 27-Dec-2013 00:00

Hi,

I recently wrote a little blogpost about SEO improvements for Sitefinity.
I discovered that when I add the rewrite rule for adding/removing trailing slashes to the url, some of the WCF services are not working, for example:

  • Analytics Service
  • Calendar Service (for retrieving the Calendars for Events)

If I disable the rule to remove trailing slashes, all works okay, so I guess there is some inconsistency in how these services are called?

Daniel.

Posted by Community Admin on 27-Dec-2013 00:00

Hi Daniel,

I noticed that too and configured the rule to ignore Sitefinity URLs:

<rule name="Remove trailing slash" enabled="true" stopProcessing="false">
<match url="(.*)/$" />
<conditions>
 <add input="REQUEST_FILENAME" matchType="IsDirectory" negate="true" />
 <add input="REQUEST_FILENAME" matchType="IsFile" negate="true" />
 <add input="REQUEST_FILENAME" pattern=".*Sitefinity.*" negate="true" />
</conditions>
<action type="Redirect" url="R:1" />
</rule>

So far it seems to work fine.

Posted by Community Admin on 27-Dec-2013 00:00

Yah, that would be a good workaround for now ;)

Thanks,
Daniel

Posted by Community Admin on 30-Dec-2013 00:00

Hi,

This is covered in the rewrites section in our documentation. You have to skip/exclude some paths from your rules: Using URL Rewrite for SEO.

Regards,
Radoslav Georgiev
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 Public Issue Tracking system and vote to affect the priority of the items

This thread is closed