Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Dan 1250 posts 3747 karma points admin c-trib
    Jul 18, 2011 @ 11:12
    Dan
    1

    404 where source node has no template

    Hi,

    I'm not sure if this is a bug as such, or just whether it's not possible for the redirects to work without the source node having a template.  Basically though, I had a set-up whereby I needed a simple but permanent 301 redirect from scratch (no legacy page to redirect, just a structural requirement to redirect from a URL to another).  As such my source page from where the redirect was happening had no template assigned.  However, I found that this seemed to break not only the source page, but also the redirected page, producing a 404 error.  I uninstalled this package but it didn't fix it.  So I tried assigning a template to the source page and it started working again.

    As I say, perhaps not a bug as such.  Perhaps it's just logical, but I thought I'd document it in case anyone came across this.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 18, 2011 @ 11:20
    Stefan Kip
    0

    Nah, this isn't a bug, it's just how umbraco works.
    The 301 URL Tracker is basically a handler added to the 404handlers.config.

    First umbraco will lookup the url in it's own node system
    Then umbraco will look for:
    - Alias (umbracoUrlAlias)
    - Template
    - Profile

    After that the 301 URL Tracker kicks in, but I guess the first handler (node handler) is executed, because the url exists internally... 

  • Dan 1250 posts 3747 karma points admin c-trib
    Jul 18, 2011 @ 11:28
    Dan
    0

    Cool, thanks for clarifying Stefan.  Hopefully it nudges someone in the right direction though if they ever come across the same scenario.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jul 18, 2011 @ 11:31
    Stefan Kip
    0

    Sure, no problem :-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies