Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1347 posts 1608 karma points
    Jun 05, 2018 @ 15:41
    Gordon Saxby
    0

    Redirects not working

    I have Umbraco v7.4.2 and Url Tracker 3.11.

    When I installed it, the checking sequence (when Umbraco reloaded) said that the HTTP module was not responding and seemed to show the source of the website home page.

    It is recording 404 pages and it is recording name changes, however it isn't doing any redirects.

    As a test, I created a node / page called "GS Test" and checked it loaded OK. I then renamed the page to "GS Test Page" and that was captured by Url Tracker. I then tried to load the old page "GS Test" and it gave me our 404 page.

    Url Tracker had also recorded that 404. I edited that 404 entry to give it a destination page (GS Test Page) and then the redirect from "GS Test" to "GS Test Page" worked!?

    So, why does editing the 404 entry work, but the name change entry doesn't?

    Sorry, ought to say - the site is built with a single "main" node that redirects to the "EN" version of the site, which is the second top level node. That node has a number of domains attached.

    There is also a "DE" site (top level node).

  • Daniel Chenery 119 posts 465 karma points
    Jun 05, 2018 @ 16:26
    Daniel Chenery
    0

    Is it possible to 'working' redirects are actually handled by Umbraco's Redirect service?

    I'd double check the URL Tracker Module is installed first. You can do so by visiting http://example.com?890B748D-E226-49FA-A0D7-9AFD3A359F88=1

  • Gordon Saxby 1347 posts 1608 karma points
    Jun 06, 2018 @ 07:22
    Gordon Saxby
    0

    What should I see when I go to that Url? I just get the website home page.

  • Daniel Chenery 119 posts 465 karma points
    Jun 06, 2018 @ 07:24
    Daniel Chenery
    0

    Any page should work, so the homepage should be fine :)

  • Gordon Saxby 1347 posts 1608 karma points
    Jun 06, 2018 @ 07:26
    Gordon Saxby
    0

    OK - can you explain what I've just tested though, and what the URL was?!

  • Daniel Chenery 119 posts 465 karma points
    Jun 06, 2018 @ 07:31
    Daniel Chenery
    0

    Did it return a 404? Or the GUID displayed on the screen?

    It's a simple test to check the URL tracker is installed successfully: https://github.com/kipusoep/UrlTracker/blob/master/Modules/UrlTrackerModule.cs#L132

    If it is, then I'm not too sure why you're redirects aren't working. I'm also not familiar with multilingual setups, so that could be contributing to your issues.

    I'd recommend you turn on debugging in the URL tracker and hopefully that can give you a little more light on what's going on.

    Add the following to your Web.config file

    <add key="urlTracker:enableLogging" value="true" />
    

    Then add/update this line in your log4net.config file

    <priority value="Debug"/>
    

    This logs to the Umbraco default log (App_Data/Logs/)

  • Gordon Saxby 1347 posts 1608 karma points
    Jun 06, 2018 @ 07:41
    Gordon Saxby
    0

    It just loaded the website homepage.

    The first / top-most content item in the Umbraco content section is just a node with an UmbracoRedirect on it, which redirects to the "EN" content tree (next node down). I didn't start this project so I don't know why it was setup like that.

    When I go to the link https://my.site?890B748D-E226-49FA-A0D7-9AFD3A359F88=1 I am just redirected to the home page, e.g. https://my.site/en/

    So, I wonder if the UmbracoRedirect property is messing things up, by getting there first before Url Tracker?

    I will try enabling debugging.

  • Daniel Chenery 119 posts 465 karma points
    Jun 06, 2018 @ 07:46
    Daniel Chenery
    0

    I can't see Umbraco's internal redirect messing with the GUID link mentioned above. It sounds a lot like the UrlTracker module isn't being hit.

    You might be best to try reinstalling it, see if that kicks things on.

    It is very odd it's being redirect. I'm not sure where that would be coming from.

  • Gordon Saxby 1347 posts 1608 karma points
    Jun 07, 2018 @ 11:02
    Gordon Saxby
    0

    I have enabled logging and I get this:

        2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | EndRequest start
     2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | EndRequest start
     2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Incoming URL is: en/gs-test/?1
     2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Incoming URL is: en/gs-test/?1
     2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Response statusCode is 404, continue URL matching
     2018-06-07 11:52:41,728 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Response statusCode is 404, continue URL matching
     2018-06-07 11:52:41,733 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Current request's rootNodeId: 1057
     2018-06-07 11:52:41,733 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Current request's rootNodeId: 1057
     2018-06-07 11:52:41,743 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | No match found, logging as 404 not found
     2018-06-07 11:52:41,743 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | No match found, logging as 404 not found
     2018-06-07 11:52:41,746 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | EndRequest end
     2018-06-07 11:52:41,746 [P5076/D3/T309] DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | EndRequest end
    

    The original node name was "GS Test" giving a Url of "/en/gs-test". The new name is "GS Test Page" with a Url of "/en/gs-test-page".

    The Url Tracker settings are: enter image description here

    But when these get created, the Url dropdown always seems to select the second item, rather than the last one which is actually the first domain entered against the top-level node. Changing it to either the last item or to "\" seems to have no effect. enter image description here

  • Daniel Chenery 119 posts 465 karma points
    Jun 07, 2018 @ 12:42
    Daniel Chenery
    0

    Okay, so on the root node drop down are you able to select the node with the ID of 1057?

  • Gordon Saxby 1347 posts 1608 karma points
    Jun 07, 2018 @ 13:31
    Gordon Saxby
    0

    The 4 items that start "en" are node 1057. Whatever I select there has no effect.

    The "./en/gs-test" request is being logged in the "404" list - if I edit that and point it at "/en/gs-test-page" then it works. Of course, I don't want to have to do that manually for every changed page!

  • Daniel Chenery 119 posts 465 karma points
    Jun 07, 2018 @ 13:39
    Daniel Chenery
    0

    I'm afraid I'm a bit stumped by what's going on :(

    My best-guess is something to do with top level node handling the redirects as you thought. I guess it confuses the routing as to which root node is actually active

    You could try downloading the source and seeing what happens and perhaps running a custom-build. Alternatively an IIS rule might be your best option here.

    Sorry I can't be of more help!

  • jenifer123 1 post 71 karma points
    Jun 10, 2018 @ 08:34
    jenifer123
    0

    helo, i am having the same redirect issue I have done the normal Umbraco 404 page setup changes. Urls like "/dsfd" works fine but I when I do something like "/dfad.jpg" I get status 404 with server error Resource not found Changes done so far:

    1] umbracoSettings.config

        <errors>
      <error404>3231</error404>
      <!-- 
        The value for error pages can be:
        * A content item's integer ID   (example: 1234)
        * A content item's GUID ID      (example: 26C1D84F-C900-4D53-B167-E25CC489DAC8)
        * An XPath statement            (example: //errorPages[@nodeName='My cool error']
      -->
      <!--
        <error404>
            <errorPage culture="default">1</errorPage>
            <errorPage culture="en-US">200</errorPage>
        </error404>
       -->      
    </errors>
    

    2]web.config

    <customErrors mode="Off" />
    

    And

    <httpErrors existingResponse="PassThrough" />
    
  • Arunabha Das 37 posts 150 karma points
    Mar 26, 2019 @ 06:38
    Arunabha Das
    0

    Hi All,

    I am having an issue with 301 URL tracker. Vsrion is 3.11. I have two root domain on one umbraco instance. website.de and website.de/en. Whenever I tried to add root domain website.de/en and old url to /oldpage and redirect node to /newpage, it gives 404. When I see the 404 view , it shows root node website.de/en and old url - website.de/oldpage. Problem is old url is not getting appended with website.de/en. Right scenario would be website.de/en/oldpage instead of showing website.de/oldpage.

    Can you please help me on that.

  • 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