Questions on Moving SMF forum to new Folder

Started by helpdivya, April 05, 2009, 05:16:26 PM

Previous topic - Next topic

helpdivya

I red somewhere in this forum regarding moving all your files to new folder if you have move the smf forum to new directory. I have some queries regarding it.

Do we need to move the .htaccess file also? Also when you say copy the repair_settings to SMF folder do you mean move it to the new folder where you want the smf to be e.g http://www.ekhichdi.com/forum or in http://www.ekhichdi.com

Also could you please tell me what happens to the URL that is cache in google and to URL that I have in favorites. for eg. if I move to new folder say 'forum' then my smf URL for all the post would become http://www.ekhichdi.com/forum/childboard/xyz instead http://www.ekhichdi.com/xyz. Is there a way to redirect user coming to old url http://www.ekhichdi.com/xyz to the new URL http://www.ekhichdi.com/forum/childboard/xyz

KahneFan

Depending on your host, some hosts allow you to send people from a 404 error to a specified page, which can even be your home page. So, if they were to go to yoursite.com/forum/deadpage, they would be redirected to yoursite.com

As for repair_settings.php - move ALL files within your /forum folder up to the next level and then place the repair_settings in your top directory, so it should be in with:

/attachments
/avatars
/cache
/Packages
/Smileys
/Sources
/Themes
index.php
repair_settings.php
settings.php
settings_back.php

Note: Above is just a sample of the view you will see, so you may/may not have some folders/files I listed above, but it shows how repair_settings.php is in the main directory.

Then you will navigate to yoursite.com/repair_settings.php and change the settings as needed.

Be sure to delete repair_settings.php once changes have been completed.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Tyrsson

Are you moving this forum out of the root or into the root?
PM at your own risk, some I answer, if they are interesting, some I ignore.

helpdivya

I am moving my smf forum out of root folder to anothere sub folder.

Tyrsson

Then create the folder and move all the SMF files and folders into the new location and then upload the repair_settings tool into the top level of the new folder that you just moved all the other files etc to and access it via your browser.

If your url is now:

http://www.yourdomain.com/

and you move it to
/forum

Which would make the new url
http://www.yourdomain.com/forum

Then the repair_settings address after its uploaded should be:
http://www.yourdomain.com/forum/repair_settings.php (which will be the top level of the new folder "forum"
PM at your own risk, some I answer, if they are interesting, some I ignore.

Adish - (F.L.A.M.E.R)

1. Put all the files in the new folder..
2. Run repair_settings.php and fix the paths (What is repair_settings.php?)
3. To fix the other theme paths installed in the forum:-

Go to:

AdminCP>Themes and layout> Theme settings

Scroll to the bottom and click "attempt to reset all themes"


That should probably get your site back to normal..

helpdivya

And what happens to all my old URl of posts. Like I have my urls like this http://www.ekhichdi.com/t20/new-ipl-2-schedule and once I move all mu forum files to new folder 'forum' then will it be still the same URl? or will it become http://www.ekhichdi.com/forum/t20/new-ipl-2-schedule

Also if the URL changes then how can I redirect users to correct URL espically people coming from google search becuz google will have old url in it's search for sometime

Adish - (F.L.A.M.E.R)

Well, the URL will change. For making the users redirect to the specific place you want, you might have to play around with .htaccess or maybe with the redirection tool provided in the control panel. It shouldnt be a problem if you leave it as it is.. It will just give out a 404 page not found or off limit message and people will then themselves go to the page they might be searching for...

KahneFan

Quote from: F.L.A.M.E.R on April 06, 2009, 04:13:50 PM
...It will just give out a 404 page not found or off limit message and people will then themselves go to the page they might be searching for...

Or, as stated above, if your host offers it, some sites allow you to redirect 404's to your home page. So, if they click a link on Google, while they might not end up at the original post, but they'll end up at your site. OR, you can create a nice looking 404 page using the custom pages mod, which you can have a statement like "We're sorry, the page you were looking for may have moved. Feel free to browse our forums, or contact me [if you want contact] for help" Then, even though most people know how to navigate a forum, you might still want to have a "Enter Our Forum" link. Then use the link from the custom pages mod as your 404 redirect.
#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

greyknight17


Timber

I was hoping helpdivya would reply.
I am also in the need of moving my smf forum out of root folder to another sub folder.
My root folder has such a mess of files and folders that I am afraid that I might be destroying my current forum in the moving process.
When looking in my FTP, I cannot locate the repair_settings.php file. Do I have to add it or should it already be there?

The files I have in the public_html folder are;
ssi_examples.php
SSI.php
Settings_bak.php
Settings.php
index.php
fantversion.php
license.txt
changelog.txt
agreement.txt
install_1-1.sql
ssi_examples.shtml
SSI.php~
index.php~
menumodel002.js
menumodel001.js
lmpres70.js
floatside.js
readme.html
news_readme.html
lmpasswpopfail.html
lmpasswerror.html
lmpasswdlg.html
.htaccess
lmimginv.gif
error_log
Thumbs.db
DropBorder.css
.htaccess.backup-2009-02-01
/themes
/sources
/smileys
/packages
/avatars
/attachments

Can you advise which folders and files I should be moving in a forum folder?

helpdivya

I have not yet tested this. I tired once to install the smf in other folder and it even breaks my SMF installation of the root folder. Since then I have tried it again.

JLHC

Quote from: erscomau on May 18, 2009, 06:43:41 AM
I was hoping helpdivya would reply.
I am also in the need of moving my smf forum out of root folder to another sub folder.
My root folder has such a mess of files and folders that I am afraid that I might be destroying my current forum in the moving process.
When looking in my FTP, I cannot locate the repair_settings.php file. Do I have to add it or should it already be there?

The "repair_settings.php" is not available in your SMF install. It needs to be downloaded here:-
http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php

Make sure that you delete this file as soon as you have used it.
James Lee - 10+ Years SMF Veteran • Cloud & Web Hosting Specialist

Recommended Web Hosting for SimpleMachines Forum (SMF)

Timber

Thank you JLHC

All I have to do now is have the introduction/log in page reflect the rest of the forums theme.

Thank you again for your assistance.

JLHC

Quote from: erscomau on May 19, 2009, 05:27:28 AM
Thank you JLHC

All I have to do now is have the introduction/log in page reflect the rest of the forums theme.

Thank you again for your assistance.

No problem. Glad to see your issue now resolved. ;)
James Lee - 10+ Years SMF Veteran • Cloud & Web Hosting Specialist

Recommended Web Hosting for SimpleMachines Forum (SMF)

Advertisement: