Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Keeps returning 404 not found #147

Open
StateBarofArizona opened this issue Jan 10, 2017 · 2 comments
Open

Keeps returning 404 not found #147

StateBarofArizona opened this issue Jan 10, 2017 · 2 comments

Comments

@StateBarofArizona
Copy link

I have two Umbraco servers, both on v.6.2.6, one intranet, one public facing. On the Intranet site, there never was a previous copy of UrlTracker. Installed with no errors, added a manual entry, renamed a page, all works as expected.

On the other server, there previously was UrlTracker 1.x that I uninstalled. Run the 3.x installer, no errors, all looks good, allow to convert the old listings. Go to Content, Url Tracker tab, all is good. I can make changes, delete entries, etc.

Now the problem... on this server, every old URL triggers a page not found error instead of redirecting to the new URL. I tried manual entries, auto entries, etc. and all fail. I've tried commenting out any other 404 handling in web.config and still, no go. Where else can I look?

@hfloyd
Copy link

hfloyd commented May 2, 2018

I am having a somewhat similar issue - the Urls are never getting redirected - just always going to 404 page.

The issue occurs on my local development server as well as on hosted production server.
Umbraco v.7.7.4.

First, I thought that perhaps the module just wasn't loading, so I manually added it to the web.config:

<system.web>
    <httpModules>
      <add name="UrlTrackerModule" type="InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule, InfoCaster.Umbraco.UrlTracker" />
    </httpModules>
</system.web>
...
<system.webServer>
  <modules>
    <add name="UrlTrackerModule" type="InfoCaster.Umbraco.UrlTracker.Modules.UrlTrackerModule, InfoCaster.Umbraco.UrlTracker" />
  </modules>
</system.webServer>

Still no redirects, though, so I enabled debugging:

  • web.config: <add key="urlTracker:enableLogging" value="true"/>
  • config\log4net.config: <priority value="Debug"/>

To test, I took an actual entry from the list. "/event/an-old-event/" should redirect to "/events/". When I put http://mydomain.local/event/an-old-event/ in the browser, it sends me to the 404 page.

These are the relevant log entries:

DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | AcquireRequestState start
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Incoming URL is: event/an-old-event/
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Response statusCode is 404, continue URL matching
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Current request's rootNodeId: 1225
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | No match found in AcquireRequestState
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | AcquireRequestState end
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | AcquireRequestState start
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Incoming URL is: event/an-old-event/
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Response statusCode is 404, continue URL matching
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | Current request's rootNodeId: 1225
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | No match found in AcquireRequestState
DEBUG InfoCaster.Umbraco.UrlTracker.Helpers.LoggingHelper - UrlTracker HttpModule | AcquireRequestState end

So, it seems the issue is here: "No match found in AcquireRequestState", but I'm just not sure WHY it isn't locating a match. I think I'm going to need to pull down a clone of the sourcecode and attach it to the site to step-through... but figured I'd post here in case @kipusoep has any input.

Thanks for an otherwise great package!

@uoc1691
Copy link

uoc1691 commented Oct 10, 2018

Having the same issue as @hfloyd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants