smf11rc2 one level down without interuption.

Started by SALocalcom, February 08, 2006, 12:15:13 PM

Previous topic - Next topic

SALocalcom

Hey! :)   I need to move the whole forum one level down into another directory.  I want to do this without disturbing my visitors (who are seeming a little reluctant after losing the old board).

Can I instal a second rc2 from scratch and get it ready (both running at the same time), then transfer the data (users and posts)?

mydomain.com/directory/smforum
instead of:
mydomain/smforum

Oldiesmann

You don't need to completely install the new board. Just download all your forum files to your computer, upload them all into the new directory, temporarily put your other one in maintenance mode and then use repair_settings.php to change all the paths. Finally, put an index.php file in the old folder with this in it:

<?php
$location 
'http://www.mydomain.com/directory/smforum/index.php' . isset($_SERVER['QUERY_STRING']) ? '?' $_SERVER['QUERY_STRING'] : '';
header('HTTP/1.1 403 Moved Permanently');
header('Location: ' $location);
?>


That will redirect users to the same spot at the new location - the 403 Moved Permanently header is mainly so search engines will update their records faster (a redirection header by itself isn't enough).
Michael Eshom
Christian Metal Fans

SALocalcom

Thanks, I kind'a wanted a total "fresh install" because my original forum was upgraded 10x, then 105, 106 and now rc2, and shows some stray mods and old v1. templet.  So I'd like to instal fresh rc2.  Can they both run at the same time with 2 data bases.  Will it do that during installation, or try to use the same database(myslq?)?

H

First uninstall the mods through the control panel of you old forum. That will remove any changes to the database that the mods might have made.

Then download the SMF install package. Delete install.php

Move config.php from your old install into your new SMF directory.

Then delete your old files.

I hope this makes some sense  ::)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

SALocalcom

Quote from: Oldiesmann on February 08, 2006, 12:37:02 PM
You don't need to completely install the new board. Just download all your forum files to your computer, upload them all into the new directory, temporarily put your other one in maintenance mode and then use repair_settings.php to change all the paths. Finally, put an index.php file in the old folder with this in it:

I think I'll try this....where do I put "repair settings", in the same folder as "settings.php"??
Thanks!!

Advertisement: