Advertisement:

Author Topic: Moving an SMF forum......  (Read 5138 times)

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Moving an SMF forum......
« on: November 11, 2011, 02:43:59 PM »
What exactly is involved in moving a forum to a new URL? I mean the whole 9 yards, permissions, boards, posts, members, mods, etc.

To be specific I want to move my SMF forum to    newsite.com/forum     from oldsite.com/index.php

Im not changing hosts and the new site is already in my account directory.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,872
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Moving an SMF forum......
« Reply #1 on: November 11, 2011, 02:52:31 PM »
Move all the files to the new folder, then run repair_settings.php (under "Tools" on the downloads page) to update the URLs and paths as needed. See What is repair_settings.php? for more info.
Michael Eshom
Cincy Space - now open!

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #2 on: November 11, 2011, 03:11:40 PM »
Thanks!

So wow thats it? no need to re-install SMF or anything? I guess I figured it would be more difficult than a file transfer and script.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,431
Re: Moving an SMF forum......
« Reply #3 on: November 11, 2011, 05:08:02 PM »
that is assuming you can still connect to the same database in the new location

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #4 on: November 11, 2011, 05:25:22 PM »
that is assuming you can still connect to the same database in the new location

What would prevent that? I am on the same host in the same account.

Couldn't I just move the database?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,431
Re: Moving an SMF forum......
« Reply #5 on: November 11, 2011, 07:52:58 PM »
yes you could move it but if you are using the same hosting account it should not be an issue

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #6 on: November 11, 2011, 07:55:38 PM »
Cool. Thanks for the info all.  :)

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #7 on: August 10, 2012, 05:44:44 PM »
Sorry to bump this because its so old but, still kind of confused and I'm planning to do this soon.

There wouldnt be any issues with new members or new posts? Seems weird to use a database at a different location.

Also, is there any way to forward URL's like this      oldsite.com/topic3533    to    newsite.com/topic3533   etc.

So that way all the old posts/topics that are indexed by search engines already would show the exact posts/topics on the new site.

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,879
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: Moving an SMF forum......
« Reply #8 on: August 10, 2012, 06:30:29 PM »
If you don't want to use a remote database simply export the SQL dump and import it into the new mySQL database.

You can easily create a 301 redirect by adding this to you .htaccess on the old server:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^domainname.com$ [NC]
RewriteRule ^(.*)$ http://www.domainname.com/$1 [R=301,L]
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #9 on: August 11, 2012, 12:31:13 AM »
Thanks! I think I follow...

So a 301 redirect would be a 1 to 1 redirect on every old topic and post?

Offline Interested bystander

  • Semi-Newbie
  • *
  • Posts: 27
Re: Moving an SMF forum......
« Reply #10 on: August 11, 2012, 10:12:37 AM »
I'm currently having some problems with my webhost and if things don't get sorted out soon I would like to move my domain to a new webhost.   Can I port my forum to the new host without losing my old posts, etc.?

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Moving an SMF forum......
« Reply #11 on: August 11, 2012, 10:24:17 AM »
I'm currently having some problems with my webhost and if things don't get sorted out soon I would like to move my domain to a new webhost.   Can I port my forum to the new host without losing my old posts, etc.?

Yes, provided that the database is moved properly from the old host to the new one.

Offline Interested bystander

  • Semi-Newbie
  • *
  • Posts: 27
Re: Moving an SMF forum......
« Reply #12 on: August 11, 2012, 03:18:52 PM »
I know there is a database backup option in the software.   Is it as simple as backing it up then uploading it to the new host?

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Moving an SMF forum......
« Reply #13 on: August 11, 2012, 03:56:20 PM »
I know there is a database backup option in the software.   Is it as simple as backing it up then uploading it to the new host?

Well if I were you I would use phpmyadmin or the backup option from the cpanel to backup the database. Then besides moving the database you must move the forum files too and then replace the old server database info with the new ones at the Settings.php file.

Offline Interested bystander

  • Semi-Newbie
  • *
  • Posts: 27
Re: Moving an SMF forum......
« Reply #14 on: August 11, 2012, 09:42:04 PM »
Thanks.

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: Moving an SMF forum......
« Reply #15 on: August 12, 2012, 06:21:16 AM »

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #16 on: August 30, 2012, 11:50:52 PM »
Still feeling a bit n00bish about this and I want ot make sure I understand before attempting lol.

So do I need to install SMF on the new URL? Or can I just transfer all files?

Offline Texan78

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
    • WeatherConnectionForum on Facebook
    • @WxConnection on Twitter
    • Weather Connection
Re: Moving an SMF forum......
« Reply #17 on: August 31, 2012, 12:08:46 AM »
Still feeling a bit n00bish about this and I want ot make sure I understand before attempting lol.

So do I need to install SMF on the new URL? Or can I just transfer all files?

Who is your hosting company?

Do they use cPanel?

Depending on who it is and what they use you might not have to do anything. Could be as simple as assigning the the domain if the new domain is pointing to the same host as your current domain.


Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #18 on: August 31, 2012, 11:39:06 AM »
Hostgator

Yes they do.

Hmm. Cool. Any tutorials on what you are talking about? Is that a cPanel function? And yes both the old url and new url are on the same server/hosting plan.

Offline Blah blah

  • Jr. Member
  • **
  • Posts: 322
Re: Moving an SMF forum......
« Reply #19 on: September 01, 2012, 09:40:21 PM »
Move all the files to the new folder, then run repair_settings.php (under "Tools" on the downloads page) to update the URLs and paths as needed. See What is repair_settings.php? for more info.

When you say "the new folder" do you mean the fresh smf install on the new websites root folder? Or is there no need to install a new version of smf, just move files?

MrPhil

  • Guest
Re: Moving an SMF forum......
« Reply #20 on: September 02, 2012, 12:37:02 PM »
Just move the files. If it's on the same database server as before, under the same hosting account, you don't need to do anything with the database. If server or hosting account has changed, you'll have to back up the old database (using phpMyAdmin) and restore it under a new database.