Previous Thread
Next Thread
Print Thread
Hop To
Move forum to different directory
#251398 12/15/2012 4: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
Basil #251399 12/15/2012 4:55 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
Basil #251401 12/15/2012 5:01 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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
Basil #251402 12/15/2012 5:03 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
Basil #251404 12/15/2012 5:37 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, I Find Rocks, 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
Basil #251407 12/15/2012 6: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
Basil #251409 12/15/2012 6:46 PM
Joined: Dec 2003
Posts: 6,144
Likes: 21
Offline
Joined: Dec 2003
Posts: 6,144
Likes: 21
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

Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
Who's Online Now
3 members (chefdwaiae, JAISP, Morgan), 119 guests, and 42 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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