Removing trailing slashes gives me WCF troubles
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:
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.
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>Yah, that would be a good workaround for now ;)
Thanks,
Daniel
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