/ Published in: SQL

This SQL takes the redirects from Drupal 5.5 tables and converts them into a format the WordPress plugin Redirection can understand.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
INSERT INTO wordpress.redirection_items (url, action_type, action_code, action_data, match_type) SELECT concat('/', `path`) , 'url', '301', `redirect`, 'url' FROM drupal.path_redirect;
Comments
