Hello,
I have just finished migrating my Nuke based website to Drupal.
What a change! I should have done it earlier! I like Drupal a lot and I believe its by far the best CMS around.
Everything runs fine, but I see that Google still pumps a lot of visitors that refer to old phpnuke urls.
I want to redirect them to the new content using mod_rewrite. I tried but unfortunately I was unsuccessful.
What I need is simple. If a user comes to one of the following URL's:
/modules.php?name=Forums&file=viewtopic&p=1670&highlight=
/modules.php?name=News&file=friend&op=FriendSend&sid=1254
I want him to be redirected to:
/node/2670 (1670 + 1000)
or
/node/2245 (1245 + 1000)
1000 is the increment that I had to add for the migration...
Thank you for your responses.
Alain
Comments
Home many nodes are there?
Home many nodes are there? If it is less than 1000 I think this would work.
We extract the 3 last numbers of the article id from the request and put a "2" in front of that.
The question-mark on the RewriteRule line is there so the QUERY_STRING is not added back.