Moving board to new url and database not working

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Sylvi
Registered User
Posts: 36
Joined: Thu May 18, 2017 7:03 pm

Moving board to new url and database not working

Post by Sylvi »

Currently, my board is hosted on domaina.nl, which is redirected to domainb.com.

I want to move my board from domaina.nl to domainb.com/forum.
At the same time I needed to migrate the SQL database of my board to a new database at the hosting provider.
All this happens at the same hosting provider.


I have followed these instructions:

https://www.phpbb.com/support/docs/en/3 ... or-domain/

I have uploaded my phpBB files to domainb.com/forum using FileZilla
I have migrated the SQL database to the new database that is connected to domainb using SSH.
config.php was rebuilt with the new data and uploaded.

If I am correct, I now have two forums: the original one on domaina.nl redirected to domainb.com, and the new copy on domainb.com/forum (?)

So I expected to see the new copy of my board at domainb.com/forum/adm, where I wanted to login and change the cookie settings as a final step.

However, when I go to domainb.com/forum/adm I receive a "page not found" message in the layout of my original (disabled) board.

What am I doiing wrong?

My board url: www.speedpedelecreview.com
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Moving board to new url and database not working

Post by Lumpy Burgertushie »

https://www.speedpedelecreview.com/forum/
seems to be working fine.

what style is that?

if this is not the board you are talking about please give actual urls instead of domainb etc.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Sylvi
Registered User
Posts: 36
Joined: Thu May 18, 2017 7:03 pm

Re: Moving board to new url and database not working

Post by Sylvi »

Lumpy Burgertushie wrote: Sun Jan 16, 2022 8:52 pm https://www.speedpedelecreview.com/forum/
seems to be working fine.
Yes it does now.

My DNS settings were incorrect. They were pointing to the wrong IP address.
Lumpy Burgertushie wrote: Sun Jan 16, 2022 8:52 pm what style is that?
MILK v2.
Lumpy Burgertushie wrote: Sun Jan 16, 2022 8:52 pm if this is not the board you are talking about please give actual urls instead of domainb etc.
This actually is my board: https://www.speedpedelecreview.com/forum/

The only issue remaining is that all links are dead now, because /forum is not in it :|

Do you happen to know how I can fix this?
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Moving board to new url and database not working

Post by Lumpy Burgertushie »

look up 301 redirect. you put a line or two of special code in the htaccess file for your board that tells any inbound links exactly how to redirect to where you want.

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Moving board to new url and database not working

Post by warmweer »

Sylvi wrote: Sun Jan 16, 2022 8:56 pm This actually is my board: https://www.speedpedelecreview.com/forum/

The only issue remaining is that all links are dead now, because /forum is not in it :|

Do you happen to know how I can fix this?
I suspect you're referring to links in posts such as www.myolddomain.com/ which should now be pointed at www.speedpedelecreview.com/forum/.
If that's the case then a text-replace in the posts_table might be a solution.

something like:
UPDATE `phpbb_posts` SET `post_text` = replace(post_text, 'old text', 'new text') (assuming that phpbb_ is your table prefix).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Sylvi
Registered User
Posts: 36
Joined: Thu May 18, 2017 7:03 pm

Re: Moving board to new url and database not working

Post by Sylvi »

My old domain was www.stromerforum.nl, but this was already forwarded to www.speedpedelecreview.com for I think over a year now. (Webforward via hosting provider.)

This weekend, I have moved my hostig package (database + website) that was still attached to my old domain stromerforum.nl to speedpedelecreview.com.

At the same time I have moved my board from the root to a subdirecttory: www.speedpedelecreview.com/forum.

And I have launched a homepage at speedpedeledreview.com.


So I think the main problem now is that both the links on my board, but also all links that are placed on external websites get a 404.

For example:

Old: https://speedpedelecreview.com/viewtopic.php?f=17&t=35
New: https://speedpedelecreview.com/forum/vi ... ?f=17&t=35

Old: https://speedpedelecreview.com/viewtopic.php?f=17&t=35
New: https://speedpedelecreview.com/forum/vi ... ?f=17&t=35

I was wondering if formulating a redirect in the htaccess file of speedpedelecreview.com would solve the issue for both the links on my board and external links. Somewhere /forum would need to be added.

But I am a total n00b in this so I have no idea of this is even possible and of so, how to do this.
Sylvi
Registered User
Posts: 36
Joined: Thu May 18, 2017 7:03 pm

Re: Moving board to new url and database not working

Post by Sylvi »

The problem with the links is now solved too.

I have added this to the htaccess file of the new website on the .com domain.

Code: Select all

# Redirect old forum topics to "/forum" subdirectory
RewriteRule ^viewtopic\.php$ /forum/$0 [R=301,L]
Post Reply

Return to “[3.3.x] Support Forum”