Hello ٍGuys,

Can I migrate the content from D5 to D7 with the same nid, so I need the new URL to be the same old URL? it's possible.

Thanks a lot for your support,

Comments

apanag’s picture

I think you should add in your field mappings the following:

$this->addFieldMapping('nid', 'nid');
$this->addFieldMapping('is_new')->defaultValue(TRUE);
mikeryan’s picture

Status: Active » Fixed

Answered by @apanag. I'll just note when using the UI that you can go to the field mapping editor for the migration and map the nid destination field to the nid source field, and set the default value for the is_new field to 1.

mbawazir’s picture

Many Thanks all of you, I've tried with the UI migration, It's okay

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mbawazir’s picture

I have another question about vid, How I make vid = nid, Is there any wrong when nid is not same vid?

Thanks for your cooperation