Posted By

ethicka on 02/11/11


wordpress drupal conversion redirection pathredirect

Versions (?)

Convert Drupal path_redirect to WordPress Plugin Redirection

 / 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.

  1. INSERT INTO wordpress.redirection_items (url, action_type, action_code, action_data, match_type)
  2. SELECT concat('/', `path`) , 'url', '301', `redirect`, 'url'
  3. FROM drupal.path_redirect;

Report this snippet  

You need to login to post a comment.