Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vince Scordino 5 posts 45 karma points
    Nov 15, 2017 @ 03:55
    Vince Scordino
    0

    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.

  • Matt Darby 28 posts 391 karma points c-trib
    Nov 15, 2017 @ 08:48
    Matt Darby
    0

    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?

  • Vince Scordino 5 posts 45 karma points
    Nov 22, 2017 @ 23:31
    Vince Scordino
    100

    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 :)

Please Sign in or register to post replies

Write your reply to:

Draft