Copied to clipboard

Flag this post as spam?

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


  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 15:43
    Ryan
    0

    Redirects no longer work when created (older ones still do)

    Hi

    I'm running the beta 2.0 Tracker.  Something recently happened where new redirects will not work when created.  Example: body.cfm?id=123 should go to /page-name from the tree picker.  All old redirects still work, just not the new ones.

    The only thing I know I did differently was in the the 404 view.  We recently launched our site, and I found some popular old links in the 404 tracker.  I clicked on the item in the 404 tracker and created a redirect right from there.  However, the redirect didn't work.  And now it appears that any new (normal) redirects do not work when created.

    Any thoughts on this issue?  Thanks.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 14, 2013 @ 15:49
    Stefan Kip
    0

    Sounds like a weird issue.
    First thing I'd like you to try, is to upgrade to the latest v2 version, which is just as easy as uninstalling the 'old' v2 and then installing the latest v4.

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 16:43
    Ryan
    0

    Thanks for the quick reply!  I tried to recreate this issue on my test site.  I created a redirect for "body.cfm" from the 404 viewer (which is when I started noticing the problem in live).  After that, none of the previous 400 redirects work, nor does the body.cfm one I just made in the 404 view.  Also after further testing in live, none of the redirects are working there either.  I guess I must have some links cached which I why I thought the old ones were still ok.

    After this, I unstinalled the old and then installed the 2.1.4 package in test.  I'm still experiencing the issue.

    It seems as though creating the redirect right from the 404 view cuased the issue.  I don't know if creating a redirect for "body.cfm" knocked out all of the "body.cfm?id=123" ones, but the "body.cfm" throws a 404 as well.  Any thoughts?  Thanks again!

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 16:46
    Ryan
    0

    Thanks for the quick reply!  I tried to recreate this issue on my test site.  I created a redirect for "body.cfm" from the 404 viewer (which is when I started noticing the problem in live).  After that, none of the previous 400 redirects work, nor does the body.cfm one I just made in the 404 view.  Also after further testing in live, none of the redirects are working there either.  I guess I must have some links cached which I why I thought the old ones were still ok.

    After this, I unstinalled the old and then installed the 2.1.4 package in test.  I'm still experiencing the issue.

    It seems as though creating the redirect right from the 404 view cuased the issue.  I don't know if creating a redirect for "body.cfm" knocked out all of the "body.cfm?id=123" ones, but the "body.cfm" throws a 404 as well.  Any thoughts?  Thanks again!

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 14, 2013 @ 16:52
    Stefan Kip
    0

    I've tested the body.cfm rule in one of my websites and it did redirect. So my suggestion is to enable logging and see what's happening in the logs:

    I've build in some logging for these kind of situations. Please enable logging by adding an appSetting with key="urlTracker:enableLogging" and value="true" and also set umbracoDebugMode to true.
    Request the old url with the query string and read the logs to get an idea why the UrlTracker didn't redirect the request.

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 17:13
    Ryan
    0

    Testing "body.cfm?id=691"

    2013-08-14 11:01:14,230 [17] INFO  umbraco.BusinessLogic.Log - [Thread 11] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:01:14,231 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statusCode is 404, continue URL matching

    2013-08-14 11:01:14,231 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Incoming URL is: body.cfm?id=691

    2013-08-14 11:01:14,231 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Current request's rootNodeId: 1055

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | URL match found

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Redirect node id: 1055

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Redirect url set to: /

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | PassThroughQueryString is enabled

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Old URL query string set to: id=834

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Aborting; query strings don't match

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:01:14,303 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:01:21,923 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:01:21,923 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:01:21,923 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    Testing "body.cfm"

    2013-08-14 11:03:01,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:01,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:01,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:11,927 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:11,927 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:11,927 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:17,570 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:17,570 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statusCode is 404, continue URL matching

    2013-08-14 11:03:17,570 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Incoming URL is: body.cfm

    2013-08-14 11:03:17,570 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Current request's rootNodeId: 1055

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | URL match found

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Redirect node id: 1055

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Redirect url set to: /

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | PassThroughQueryString is enabled

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Old URL query string set to: id=834

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Aborting; query strings don't match

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:17,623 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:21,951 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:21,951 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:21,951 [17] INFO  umbraco.BusinessLogic.Log - [Thread 23] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:31,919 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:31,919 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:31,919 [17] INFO  umbraco.BusinessLogic.Log - [Thread 10] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:41,925 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:41,925 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:41,925 [17] INFO  umbraco.BusinessLogic.Log - [Thread 20] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    2013-08-14 11:03:51,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest start

    2013-08-14 11:03:51,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | Response statuscode is not 404, UrlTracker won't do anything

    2013-08-14 11:03:51,926 [17] INFO  umbraco.BusinessLogic.Log - [Thread 18] Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Debug | User: 0 | NodeId: -1 | Comment: UrlTracker HttpModule | EndRequest end

    It looks like an issue with the PassThroughQueryString.  However, I always uncheck this.  I know when I set up "body.cfm" I unchecked it.  I do not know where redirects from the 404 view get stored to double check.  I  did double check "body.cfm?id=691" and 692.  And they both have the forward query string unchecked.  Every one I tested has the Old URL query string set to: id=834, which is odd.  Thanks again for your help.
  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 14, 2013 @ 17:29
    Stefan Kip
    0

    Could you try this version, by downloading the zip and extracting the two files to your bin folder: https://www.wetransfer.com/downloads/1acdf54764abe2e9d2a8f8529904e4bc20130814152855/e07b98df659c59a313a0fd0a5ba856ae20130814152855/4454e1

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 17:36
    Ryan
    0

    I'm not sure why my responses aren't showing.  I've tried three different browsers, it's weird.

    I replaced the two dll files.  I tried 6-8 redirects at random.  Same issue for all tests: Old URL query string set to: id=834...Aborting; query strings don't match.

    Thanks again for your help.  I really appreciate it!

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 14, 2013 @ 17:43
    Stefan Kip
    0

    It seems your replies were marked as spam for some reason. I've notified Sebastiaan about the issue.

    What's being logged when you request just body.cfm, without querystring (assuming there is an entry for just 'body.cfm' in the UrlTracker)?

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 17:50
    Ryan
    0

    It's the same in the logs.

    Incoming URL is: body.cfm
    Current request's rootNodeId: 1055
    URL match found
    Redirect node id: 1055
    Redirect url set to: /
    PassThroughQueryString is enabled
    Old URL query string set to: id=834
    Aborting; query strings don't match
    No match found, logging as 404 not found
    No match found, url is configured to be ignored: body.cfm

    Oh wait!  The last line is helpful.  Could it be that when I created a redirect from the 404 view.  It actually created an ignore?  Where are the ignores stored?  Thanks again.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 14, 2013 @ 19:30
    Stefan Kip
    0

    It's in the web.config's appSettings: urlTracker:404UrlsToIgnore
    If the URL is an umbraco reserved URL or umbraco reserved path, the same message is logged.
    So I think you've added this URL to one of those, right? It shouldn't be necessary, because the UrlTracker will handle it.

  • Ryan 35 posts 129 karma points
    Aug 14, 2013 @ 19:41
    Ryan
    0

    I didn't add anything to the web.config file aside from the logging today.  There's no settings for the urlTracker or umbracoReservedUrls.  I'm not sure what's causing the "body.cfm" URL to be ignored.  I do know it started when I created the redirect from the 404 view.

  • Ryan 35 posts 129 karma points
    Aug 19, 2013 @ 15:09
    Ryan
    0

    My most recent post is not showing.  I'm not sure if you received an email or not.

    There are no entries for the reserved URLs or 404 ignores.  I have not changed any config lines (aside from the logging).  The issue started the instant I setup up "body.cfm" as a redirect.

    Any other ideas I can try.  Thanks again!

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 19, 2013 @ 15:33
    Stefan Kip
    0

    I dunno, why don't you download the source code and investigate this yourself?

  • 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