Return to Snippet

Revision: 41066
at February 11, 2011 10:05 by ethicka


Initial Code
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;

Initial URL


Initial Description
This SQL takes the redirects from Drupal 5.5 tables and converts them into a format the WordPress plugin Redirection can understand.

Initial Title
Convert Drupal path_redirect to WordPress Plugin Redirection

Initial Tags
wordpress, drupal

Initial Language
SQL