I think I messed up "old" URLs

Categorized As:

Oh, dear. In my quest to make URLs pretty, I think I used pathauto to batch process away all the "old" URL aliases. Of course, these old aliases need to continue to work, so that the poor internets don't become clogged with dead links. And think of the poor crocheters.

Thing is -- how can we have both? Or can we? I suppose it's possible I can't have my batch-process cake and eat it too. But regardless, the question remains: is there a handy command-line-Emma-magic that can bring back the old aliases, even if it means ditching the the pretty ones?

Um. No. I have to bring them all back in by hand from the old site... I will add it to my list.

Submitted by emmajane on 29 August 2007 - 7:39am.

Dude. I am SO sorry. I had the best of (ill-conceived) intentions.

Submitted by Kim Werker on 29 August 2007 - 8:41am.

Update: Greg and I will look at this this evening. We might have batch-imported the old URLs the last time we switched to Drupal -- might be we can resolve this tonight.

Submitted by Kim Werker on 29 August 2007 - 8:50am.

You can't just bring them over. Sadly. Many of the articles have new node IDs now and the old aliases may/not work. I might be able to restore from a snapshot I took of the database at some point. I'll let you make it up to me at Webs. "Say it with cashmere"? ;)

Submitted by emmajane on 29 August 2007 - 12:10pm.

Yes, cashmere. Consider it done. :)

Submitted by Kim Werker on 29 August 2007 - 12:38pm.

Most URLs will now be working. There were about 20 pattern nodes when I was importing the old site the first time around whose node numbers I had to change. I can't find the list and can't remember if the import files had the numbers updated (I don't think they did). Please DO NOT update pattern path-auto stuff without taking a database snapshot first.

From within a shell (SSH connection) this can be done with the following set of commands.

$ cd /home/emmajane/database-snapshots
$ mysqldump -u crochet_admin -h drupal.crochetme.com -p --add-drop-table relaunch > relaunch.$DATE.sql

Thanks! :)

It's not entirely resolved, but I'm going to move it to resolved because it's as resolved as we can get it for now.

Submitted by emmajane on 12 September 2007 - 8:47pm.

Cool. And thank you! The remaining URLs can be corrected as they come up, yes? Just by entering a new alias on the pattern edit screen, right?

Submitted by Kim Werker on 12 September 2007 - 9:25pm.

Absolutely correct!!

Submitted by emmajane on 13 September 2007 - 6:02pm.

User login

Get Our eNewsletter

Lots of tips and techniques to help you learn even more about crochet ... and it's FREE!
Enter your email address: