Closed (fixed)
Project:
Wordpress Import
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2010 at 12:05 UTC
Updated:
25 Nov 2010 at 11:37 UTC
My wordpress urls where governed by http://wordpress.org/extend/plugins/scategory-permalink (Select Category) and the path was defined with "/%scategory%/%postname%/"
So now I get 404s in drupal :(
Don't see a way around it :(
Comments
Comment #1
eiland commentedi fixed it myself using phpmyadmin and the path_redirect module.
Using phpmyadmin on my wp db
The results I edited with my spreadsheet editor OOo calc to read
$title["old_path"]="post title";and use the the following php snippet to create the mysql to import into drupal:
of which i fed the results in he path_redirect table (obviously this module needs to be activated).
Voila.
A similar construction you can use to redirect Wordpress category pages to drupal taxonomy term pages. You just need to alter the above mysql code to extract the Wordpress category paths and titles, an the sql in the php to get the new term path from drupal.
sorry if code looks a mess, but it works fine :)