Previous Thread
Next Thread
Print Thread
Hop To
Move forum to different directory #251398 12/15/2012 3:54 PM
Joined: Aug 2006
Posts: 583
Basil Offline OP
old hand
OP Offline
old hand
Joined: Aug 2006
Posts: 583
If I currently have my threads installed in /abcforum but I want it to be in /xyzforum what would I need to do to accomplish this?

What I've tried:
I tried going into control panel and in paths&DB settings I changed all the paths from acbforum to xyzforum, then of course renamed the directory abcforum to xyzforum, but I got sent to my 404 not found error when I tried to access the forum using the URL with the new directory in it.

Is there something else I need to no? Changes to the config file maybe?

Re: Move forum to different directory [Re: Basil] #251399 12/15/2012 3:55 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
config.inc.php

you will modify paths and urls there

up to 8 changes.. but they will be obvious wink

Re: Move forum to different directory [Re: Basil] #251401 12/15/2012 4:01 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Yea if I understand you

You either need to do one or the other.

Edit the complete config.inc.php file and change all of the paths in the file
or if you can access the control panel.

Goto every page and verify the settings and re-save one by one.

One way or the other you may still need to re-save in the cp. Because some info is just in the config file and some info is placed in the db tables

it would be the same as the how to move site faq.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Move forum to different directory [Re: Basil] #251402 12/15/2012 4:03 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
all path / urls can be edited in one place.. config.inc.php

no db tables are updated on a site move.

i do this all the time..

just edit ONE file wink

only caveat: is if you have people who have posted links HARDWIRED in their posts.... to the old forum... then you're screwed and have to DB query that part wink

Re: Move forum to different directory [Re: Basil] #251404 12/15/2012 4:37 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
You might also edit your .htaccess file and put this in:
Code
redirect 301 /old http://www.yourdomain.tld/new
redirect 301 /old/ http://www.yourdomain.tld/new/


All requests to the old URL will instead direct to the new URL.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Move forum to different directory [Re: Basil] #251407 12/15/2012 5:25 PM
Joined: Aug 2006
Posts: 583
Basil Offline OP
old hand
OP Offline
old hand
Joined: Aug 2006
Posts: 583
Thanks all for the quick replies !

Re: Move forum to different directory [Re: Basil] #251409 12/15/2012 5:46 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Memory recall tells me one item you can't change in the cp is the sessions folder path. That would require a file edit in cofig.inc.php.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
2 registered members (isaac, JAISP), 63 guests, and 411 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)