Change to Folder storage mode after site has started.
Elgan |
|
---|---|
Folder storage mode: If you would like to turn this on. like i did. but your site has started , even ran LDU once and it would be too much too late to change to the folder method. The following lil script takes every file in a specified dir and turns it from USERID-filename (prepending the USERID to the filename) to /USERID/filename. The script runs no SQL but will provide SQL for you to run. The SQL will change all your fps_file name from ID-filename to filename. And set all page_urls from www.yourdomain.com/7-filename to www.yourdomain.com/7/filename how to use? Before any use make a backup! if you can, backup files! eek. Then you need to backup your database. tables sed_page and sed_files are only effected by the script. the script is here http://www.cotonti.com/pastebin/29 save it as something.php and place it in your root. navigate to the script and it shall run. Enter the SQL. then dont forget to delete the script! eg MAKE A BACKUP! 1 make a swap.php, paste in the code. 2 upload to root 3 navigate to www.domain.com/swap.php 4 SQL > 5 delete www.domain.com/swap.php |