Hi guys,
I'm planing to migrate from a site using MFHS to the XFS script.
There is any way to do it for free ? Even if i've to do it manually..
Thanks
XFileSharing Pro - MFHS 1.5 to XFS 2
Bump to tell to people in my case, it's possible to migrate manually in few steps from MFHS to XFS. I had ~1400 files on MFHS that I've imported into XFS with redirecting old links on new links.
To migrate :
AT FIRST ! This mini tutorial will works perfectly if you was using url rewriting like "www.oldsite.com/en/files/442/blabla.html"
1 - Dump from your sql in a file : id, file, name, downloads from the table FILES
2 - Move files from the old folder /files into the new folder /cgi-bin/ImportedFiles
3 - Use the Import files function from you admin panel on your server list
4 - Dump file_name, file_code from the table Files of the xfs db
5- Find a way to rename all files with its real filename (from 3d42a213_1.rar to The_Real_Name.rar) thanks to the 2 dumps
For this step, I used a C# script i made to find the real name of a given file and to generate the correct update set sql..
I can share it for free if asked but it is customised for me, I can recode it..
6- Find a way to execute the update set sql that the script generated (something like : UPDATE Files SET file_name='The_Real_Name.rar' WHERE file_name='3d42a213_1.rar') (ssh, phpmyadmin etc..)
You can add the number of downloads to the request if you want.
7- All files are now imported with the correct name. To redirect all links with new links.
Find again a way to generate for all files on your dumps, 2 lines like :
RedirectMatch permanent /file/1/(.*) /qnluph835izw
Redirect permanent /file/1 /qnluph835izw
Those lines redirect the old link www.oldsite.ws/en/files/1/toto.html to www.oldsite.ws/qnluph835izw
Add, at the top those lines :
RedirectMatch permanent /(.*)/files/(.*)/(.*)$ /file/$2
RedirectMatch permanent /(.*)/files/(.*)$ /file/$2
Save all generated lines into your .htaccess root forum of your main server and all will works perfectly !
Sorry it's a very light tutorial.. Just to give you ways to do it yourself !
To migrate :
AT FIRST ! This mini tutorial will works perfectly if you was using url rewriting like "www.oldsite.com/en/files/442/blabla.html"
1 - Dump from your sql in a file : id, file, name, downloads from the table FILES
2 - Move files from the old folder /files into the new folder /cgi-bin/ImportedFiles
3 - Use the Import files function from you admin panel on your server list
4 - Dump file_name, file_code from the table Files of the xfs db
5- Find a way to rename all files with its real filename (from 3d42a213_1.rar to The_Real_Name.rar) thanks to the 2 dumps
For this step, I used a C# script i made to find the real name of a given file and to generate the correct update set sql..
I can share it for free if asked but it is customised for me, I can recode it..
6- Find a way to execute the update set sql that the script generated (something like : UPDATE Files SET file_name='The_Real_Name.rar' WHERE file_name='3d42a213_1.rar') (ssh, phpmyadmin etc..)
You can add the number of downloads to the request if you want.
7- All files are now imported with the correct name. To redirect all links with new links.
Find again a way to generate for all files on your dumps, 2 lines like :
RedirectMatch permanent /file/1/(.*) /qnluph835izw
Redirect permanent /file/1 /qnluph835izw
Those lines redirect the old link www.oldsite.ws/en/files/1/toto.html to www.oldsite.ws/qnluph835izw
Add, at the top those lines :
RedirectMatch permanent /(.*)/files/(.*)/(.*)$ /file/$2
RedirectMatch permanent /(.*)/files/(.*)$ /file/$2
Save all generated lines into your .htaccess root forum of your main server and all will works perfectly !
Sorry it's a very light tutorial.. Just to give you ways to do it yourself !