+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Removing trailing slashes gives me WCF troubles

Removing trailing slashes gives me WCF troubles

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    27 Dec 2013
    Link to this post
    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.

  2. Arno
    Arno avatar
    249 posts
    Registered:
    08 Sep 2010
    27 Dec 2013
    Link to this post
    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.
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    27 Dec 2013 in reply to Arno
    Link to this post
    Yah, that would be a good workaround for now ;)

    Thanks,
    Daniel
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    30 Dec 2013
    Link to this post
    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
4 posts, 0 answered