URL Tracker Redirects Issue on Umbraco V8
# help-with-umbraco
n
Hi all, we have recently migrated the site from V7 to V8 and all our redirects created via URL Tracker have broken as it shows over a million of not found URLs. Has anyone encountered this issue and if there is any way to fix this? Thanks, Navin https://cdn.discordapp.com/attachments/1273598294391656519/1273598294647373834/image.png?ex=66bf3257&is=66bde0d7&hm=891c8fcd4fb70f143108b1a9bdca4be1c7c170b0b1790feb0dafd351a2d8f6ff&
d
Hi there! It's been a while since I've looked at the Umbraco 8 version of the URL Tracker. Would it work for you to disable trailing slashes in your umbraco config? I can't remember exactly anymore how it worked, but I remember that this setting had an effect on how the URL Tracker matches incoming URLs
n
Thanks for your suggestion. I disabled trailing slashes in umbraco config and then recyled the application pool as suggested by Copilot but it still seems to be the same issue with the URL tracker, it still shows thousands of not found URLs. https://cdn.discordapp.com/attachments/1273598294391656519/1275419618441170997/image.png?ex=66c5d295&is=66c48115&hm=8cdce39db5261e029a385e130ada75c302a08dd695eb0f9d82d85f11b5bf3b97&
d
The not found URLs won't disappear by themselves, but are you still getting new ones?
n
@D_Inventor thanks, I don't think I am getting any new ones but is there a way get rid of these thousands of not found URLs? We managed to fix the ones with the most occurrences (over 20k) by putting the media files back in to the right location but we honestly don't have a clue about how do we now go around fixing all these not found ones. Any advice is appreciated. https://cdn.discordapp.com/attachments/1273598294391656519/1275743819786354760/image.png?ex=66c70084&is=66c5af04&hm=df71ba075c0884ac203f2609f33fef8bb55ec1839cea53d4a4fffa1ed63bb0f5&
d
You'll have to do a manual query on the database, unfortunately. It's not a difficult query to execute though, so that's something
From the top of my head, it's something along the lines of this (please correct the table name and column names):
Copy code
SQL
DELETE
FROM [dto].[icUrlTracker] -- please verify this table name
WHERE [is404] == TRUE -- please verify this column name
  and [statusCode] == 404 -- please verify this column name
That should get rid of all 404 records in the database
n
@D_Inventor Thanks for this. Do we know why we have so many not found URLs and is there any way we can fix this rather than getting rid of it?
d
Well, in your initial message, you said that your redirects weren't working. I'm assuming that the records were created as a consequence of that. You said that that suggested workaround fixed the problem, but it doesn't get rid of the already created 404 records. That last bit you have to do manually
10 Views