Advertisement:
2by2host

Author Topic: Moving forum to another domain but on the same hosting account  (Read 1232 times)

Offline Sybille Yates

  • Semi-Newbie
  • *
  • Posts: 54
  • Gender: Female
    • My Website
Hi, I added the text below to another thread with a similar question, but that had been already marked as solved so little chance I get an answer there:

I need to move my forum from one domain to another, but on the same hosting account. Having read several threads about this I think I figured out the theory, but in case I got something wrong can somebody please have a look at the steps I plan to take and tell me if I got it right? Thanks!

Copy all forum files and folders from olddomain.com/forum to newdomain.com/forum
Upload http://wiki.simplemachines.org/smf/Repair_settings.php to newdomain.com/forum and run it.
Check that all is working well.
Delete forum files and folders on olddomain.com/forum
Redirect olddomain.com/forum to newdomain.com/forum

Did I get it right? Thanks!

Offline Doctor Deejay

  • On Hiatus
  • SMF Hero
  • *
  • Posts: 3,492
  • Gender: Male
Re: Moving forum to another domain but on the same hosting account
« Reply #1 on: May 02, 2012, 08:38:36 AM »
You might want to try this: What is repair_settings.php?

Also, create an index.php in every directory of your previous site:
Code: [Select]
<?php
header
('Location: new_url');
die;
:)
Doctor Deejay                                        I understand everything... except that wig. - Jack Sparrow
Simple Machines LocalizerDon't pm me for support
deejay [at] simplemachines [dot] orgGet To Know The Team - Dr. Deejay

Offline Sybille Yates

  • Semi-Newbie
  • *
  • Posts: 54
  • Gender: Female
    • My Website
Re: Moving forum to another domain but on the same hosting account
« Reply #2 on: May 02, 2012, 10:04:52 AM »
You might want to try this: What is repair_settings.php?

Also, create an index.php in every directory of your previous site:
Code: [Select]
<?php
header
('Location: new_url');
die;
:)

Ehm, yes, I mentioned that already in my post and yes, I did look at it. Question, what do I need the index for if I do a 301 re-direct of the domain itself, not sure I understand what you mean ...

Offline N3RVE

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,906
  • Gender: Male
    • N3RVE.COM
Re: Moving forum to another domain but on the same hosting account
« Reply #3 on: May 05, 2012, 02:54:18 PM »
That just came as a suggestion, whichever method you use to re-direct doesn't matter as long as you get your forum working in the new location. I'm assuming the MySQL server is accessible from the new domain considering that it's the same hosting account? You might want to check with your host if you're unsure.
Ralph "[n3rve]" Otowo
Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote
“Somewhere, something incredible is waiting to be known.” - Carl Sagan

Offline K@

  • Lead Support Specialist
  • SMF Master
  • *
  • Posts: 38,750
  • Gender: Male
  • Nothing (Or nothing you can see)
Re: Moving forum to another domain but on the same hosting account
« Reply #4 on: May 05, 2012, 03:39:29 PM »
Pssst... Don't forget to get the database, too, unless the software can access it where it is. (Never been too sure about that, when you stay with the same host. Thought it best to mention it, just in case.)