Skip to content

Instantly share code, notes, and snippets.

@mrflo
Created October 7, 2022 13:40
Show Gist options
  • Save mrflo/e80936606db99bc588ceb6cc387ae9bc to your computer and use it in GitHub Desktop.
Save mrflo/e80936606db99bc588ceb6cc387ae9bc to your computer and use it in GitHub Desktop.
Insert into icUrlTracker all url from umbracoRedirectUrl table - Allow you to use 301 urlTracker plugin
Insert into icUrlTracker
(OldUrl,RedirectNodeId,Is404,inserted)
SELECT
url
,SUBSTRING([url], 5,LEN(url)) as RedirectNodeId
,LEFT([url]
,4)as OldUrl
,0
,[createDateUtc] as inserted
FROM [umbracoRedirectUrl]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment