I'm building a website for a Franchise network and each Franchise has access to manage their own pages (minisite) within Umbraco.
Each Franchise minisite has an UmbracoUrlAlias as their vanity Url. The vanity Url will ALWAYS have 1 or more fullstops, as it is derived from their email address.
If I use an UmbracoUrlAlias without "." Umbraco loads it fine, obviously. If I use the ".", it only loads with a trailing slash. Without a trailing slash , it hits IIS and responds with 404.
Thanks Matt. We decided to go with trailing slash across the whole site which fixes the issue. I've setup an IIS rewrite rule with a permanent redirect for all non-trailing-slash URLs.
Our SEO consultant is happy also, avoids 2 versions of canonical URLs :)
UmbracoUrlAlias Issue with fullstop in Url "."
I'm building a website for a Franchise network and each Franchise has access to manage their own pages (minisite) within Umbraco.
Each Franchise minisite has an UmbracoUrlAlias as their vanity Url. The vanity Url will ALWAYS have 1 or more fullstops, as it is derived from their email address.
Eg:
If I use an UmbracoUrlAlias without "." Umbraco loads it fine, obviously. If I use the ".", it only loads with a trailing slash. Without a trailing slash , it hits IIS and responds with 404.
Eg:
I can't use trailing slashes. I suspect it's hitting IIS because it thinks the URL is a file extension.
How can I get around this? I would use a NotFoundHandler, but it doesn't even hit the Umbraco routing.
Hi Vince,
Yes it is because IIS is trying to handle it as a file.
Some discussion and solutions here.
Could you use dashes instead of dots?
Thanks Matt. We decided to go with trailing slash across the whole site which fixes the issue. I've setup an IIS rewrite rule with a permanent redirect for all non-trailing-slash URLs.
Our SEO consultant is happy also, avoids 2 versions of canonical URLs :)
is working on a reply...