Hi, In my umbracoSettings.config file there's a setting called addTrailingSlash which is set to 'true'. I'm aware this is not only a thing of aesthetics but also of semantics ( ''/'' indicates a folder, if omitted it indicates a file).
To make the whole thing complete SEO wise I wanted to create a rewrite rule so that URL's without a trailing slash would be redirected to a variant which does contain a trailing slash. I've added the following snippet to the UrlRewriting.config file.
This creates another problem though since resources such as .js, .css files etc. obviously cannot be reached if a slash is added to the end of the path.
Is there a way to fix this? Either by adding a property which tell's the urlrewrite config to ignore files or is there perhaps another solution?
I'm aware there's a rewrite module available for IIS which could help to fix this but I prefer to stay with the thing that come out-of-the-box with a default Umbraco installation.
Trailing slash and resources
Hi, In my umbracoSettings.config file there's a setting called addTrailingSlash which is set to 'true'. I'm aware this is not only a thing of aesthetics but also of semantics ( ''/'' indicates a folder, if omitted it indicates a file).
To make the whole thing complete SEO wise I wanted to create a rewrite rule so that URL's without a trailing slash would be redirected to a variant which does contain a trailing slash. I've added the following snippet to the UrlRewriting.config file.
This creates another problem though since resources such as .js, .css files etc. obviously cannot be reached if a slash is added to the end of the path.
Is there a way to fix this? Either by adding a property which tell's the urlrewrite config to ignore files or is there perhaps another solution?
I'm aware there's a rewrite module available for IIS which could help to fix this but I prefer to stay with the thing that come out-of-the-box with a default Umbraco installation.
Thanks!
is working on a reply...