HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c


Subject: HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c
Please replace db_from and db_to to your databases's name, and run correct permissions after backup ALL databases.
This is v1.0 script:
Spoiler: [ Show ]

After run the script please edit an forum description: must update include/def_tree.php

This script test in migrating the mandrivalinux.hu
Please send the bugs in this topics.

Aleph

Subject: Re: HOWTO Migrate Drupal 6.4 To Icy Phoenix 1.2.0.27c
Convert Drupal's SEO links to Icy Phoenix's links:
Code: [Download] [Hide] [Select]
SELECT u1.dst,

CASE substring_index(u1.src, '/', -1) WHEN 'feed' THEN
CASE substring_index(u2.src, '/', 1)
WHEN 'node' THEN 'rss.php'
WHEN 'user' THEN 'rss.php'
WHEN 'blog' THEN 'rss.php'
WHEN 'forum' THEN concat('rss.php?f=', substring_index(u2.src, '/', -1))
WHEN 'taxonomy' THEN 'rss.php'
WHEN 'tagadelic' THEN 'rss.php'
WHEN 'contact' THEN 'rss.php'
ELSE 'rss.php' END
WHEN 'track' THEN concat('search.php?search_author=',
substring_index(u2.dst, '/', 1))
ELSE
CASE substring_index(u2.src, '/', 1)
WHEN 'node' THEN concat(u1.dst, '-vt',
substring_index(u2.src, '/', -1), '.html')
WHEN 'user' THEN concat('profile.php?mode=viewprofile&u=',
substring_index(u2.src, '/', -1))
WHEN 'blog' THEN concat(u1.dst, '-vt',
substring_index(u2.src, '/', -1), '.html')
WHEN 'forum' THEN concat(u1.dst, '-vf',
substring_index(u2.src, '/', -1), '.html')
WHEN 'taxonomy' THEN 'index.php'
WHEN 'tagadelic' THEN 'kb.php'
WHEN 'contact' THEN 'contact_us.php'
ELSE 'index.php'
END
END AS url

FROM www_mandrivalinux_hu.url_alias u1
left join www_mandrivalinux_hu.url_alias u2
ON u1.src = concat(u2.src, '/feed')
OR u1.src = u2.src where substring_index(u1.src, '/', -1) != 'feed';


Export the resolution to csv file and edit like stream:

Code: [Download] [Hide] [Select]
cat resolution.csv | sed 's/^"/RewriteRule ^/g' | sed 's/","/$ /g' | sed 's/"//g' > old-drupal-link.include


...and include this file to vhost file or insert the .htaccess file after RewriteEngine On line.


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1511s (PHP: 12% SQL: 88%)
SQL queries: 11 - Debug Off - GZIP Enabled