I'm about to convert a WordPress website to Drupal (Drupal 5.5 expected) and have been testing the "wp2drupal" module with great success. The website holds about 5.000 posts/nodes and 20.000 comments, with lots of internal links to posts.

When converting to Drupal, all the existing internal links will not work anymore and Google indexing will be lost as well (untill Google have re-indexed the website).

So, therefore I'm considering to support the following URLs after the website have been converted to Drupal:

But what would be the best approch to assure support for all these links? PathAuto and GlobalRedirect will make sure that the Drupal links will work - but how about the WP links?

What would be the best approach:
- modifiing the wp2drupal module, to make sure Drupal aliases are created for all the WP links?
- hacking index.php and/or .htaccess with some kind of mod_rewrite code?
- modifiing the GlobalRedirect module, maybe with some modifications to wp2drupal as well?
- develop a new module, that supports WP links?
- or what would you suggest?

Comments

dshaw’s picture

I'm pretty sure you can get pathauto to create links of the form: http://www.domain.com/2007/12/31/happy-newyear. It has a nice block change feature where you can add lots of aliases at once, so you could probably do this after your migration. Although if you're comfortable hacking the wp2drupal script that might be easier. You'd still need to add pathauto aliases for future posts though.

I don't know how you'd go about getting links like: http://www.domain.com/?p=4999. Or if you'd want to. Having clean urls as the permalink seems best in my view.

hammerFar’s picture

Just to mention: the support for old WP link structure, is only to be able to handle all the existing posts, from before the migration to Drupal - all new posts=nodes added from converting-date will be Drupal link structure.

Re the clean URLs: sure that is also the plan, and why I - dangerly - suggest to hack the index.php, to make it able to support the un-clean WP links.