Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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
 



 
Edited by Chaotic, Tue 30 Dec, 2008 18:29: Wrapped code in a spoiler BBCode.
alephlgSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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.
 



 
alephlgSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron