Created
March 15, 2018 14:08
-
-
Save Mabahe/99a92f9b25878cfec3af9f400bde6568 to your computer and use it in GitHub Desktop.
Migrate realurl redirects to sys_redirect (TYPO3 9 core)
This file contains hidden or 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 `sys_redirect` (source_path,target,hitcount,target_statuscode,source_host) SELECT CONCAT('/',url),destination,counter,301,d.domainName FROM `tx_realurl_redirects` r LEFT JOIN sys_domain d ON r.domain_limit = d.uid; | |
UPDATE sys_redirect SET source_host = '*' WHERE source_host = ''; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to migrate
EXT:url_forwarding
redirect (only internal without additional parameters + external)