Prime 357

We'll learn something

Site Menu

  • Home
  • Recent Posts
  • Forum
    • Programming Languages
      • C++
    • Website Design & Content Management
      • Wordpress >> Drupal
  • Blogs
  • Topics
    • C++
    • Changing hosts - Dummies Guide
    • Wordpress >> Drupal
  • Download Centre
  • Contact us
Home Forums Website Design & Content Management Systems Wordpress to Drupal


Image - OpenID

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password

Navigation

  • Recent posts

Topics

  • C++ (The Book)
  • Changing Hosts - a Dummies Guide
  • Wordpress to Drupal

Recent comments

  • Got it solved This page here
    3 hours 13 min ago
  • Links working
    1 day 3 hours ago
  • Thanks... I may be able to
    1 day 8 hours ago
  • 3306 by default
    1 day 19 hours ago
  • Is this the right place to
    1 day 19 hours ago
  • Figured
    3 weeks 6 days ago
  • I'm guessing at this stage
    3 weeks 6 days ago
  • WordPress MU?
    4 weeks 3 hours ago
  • Thanks
    10 weeks 1 day ago
  • I'm running the conversion
    11 weeks 5 days ago

New forum topics

  • What should the port number be
  • WordPress MU?
  • funny little bug in mac version
  • Error: Unable to Insert into Node_revisions table when converting from wordpress 2.6.0 to drupal 6.4
  • index.php?
more

Who's online

There are currently 1 user and 0 guests online.

Online users

  • Steve

Who's new

  • oODeathStormOo
  • leruffiant
  • Emtee
  • mnogodet
  • ZioMimmo

Permalinks not imported correctly

2 replies
Fri, 11 Jul, 2008 - 14:04
temp1138
Joined: 3 Jul 2008
User offline. Last seen 20 weeks 2 days ago.

I'm running the latest (5.07) on Mac.

Everything works neatly BUT the post IDs in wordpress do not match the node (nid) of Drupal.

For example I have myoldwordpress.com/online/?p=6564 is converted to mynewdrupal.com/?q=node/4738

I just would like the node.nid to be 6564 in order to keep the same urls (SEO...)

Can you tell me what I can do? any mysql magic?

Thanks for your great work

Top
  • Login or register to post comments
  • 209 reads
Fri, 11 Jul, 2008 - 19:12
#1
Steve
Joined: 27 Mar 2008
User is online
Quick Fix

Here's a quick fix, but untested as I haven't got access to Wordpress at the moment in order to check.

Within Wordpress go to your permalink settings page and activate the custom permalink option. Enter your preferred permalink. In your case something similar to /online/%post_id%. Save the entry.

Now return to the conversion process and try again. The tag %post_id% will/should force the original Wordpress post_id to be retained.

For further reference re - custom permalinks check here.

I hope this helps and I'll check it out myself when I've got access to Wordpress over the weekend.

ps. What I would recommend is, if you can, upgrade to Wordpress 2.5, then use the latest converter, at this time Version 1.04, as there are more options available and fixes things that weren't quite right in the pre Wordpress 2.5 version. All development work on the pre Wordpress 2.5 version has stopped.

Steve
My running website

Top
  • Login or register to post comments
Fri, 11 Jul, 2008 - 22:07
#2
Steve
Joined: 27 Mar 2008
User is online
It works

I've just tested the above where the custom structure is

/online/?p=%post_id%

and the permalinks are correctly imported.

The Drupal URL's will appear like:

http://yoursite.com/?q=online/%3Fp%3D371

Turn on Clean URL's and the Drupal URL will be:

http://yoursite.com/online/%3Fp%3D371

The ending bit %3Fp%3D371 is caused by the ?p= part but as you can see includes the post_id number 371. Granted, this is ugly and not what you would want and I'm not sure how to correctly convert the ?p= part. Lets call that one a 'spanner in the works'.

You do have options. If your custom structure is

/online/%post_id%

then your Drupal URL's will be similar to (with Clean URL's enabled):

http://yoursite.com/online/371

Granted, it doesn't include the ?p= part but that can be addressed with a redirect in your .htaccess file. In your .htaccess file it's simply a matter of creating a Rewritecond and Rewriterule (two lines of code) to redirect all traffic looking for the old URL to point to the new style url.

Hope this helps.

n/a
Top
  • Login or register to post comments

 Subscribe in a reader

free hit counter


RoopleTheme