Created
October 7, 2022 13:40
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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