Convert Drupal path_redirect to WordPress Plugin Redirection

/ Published in: SQL
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.