Moving board to new domain - old links will work?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
Danny Wyatt
Registered User
Posts: 115
Joined: Sat Jun 04, 2022 9:09 am
Name: Danny Wyatt

Moving board to new domain - old links will work?

Post by Danny Wyatt »

I had to move my board to a different domain once, but I didn't check this:
How to make the old links still work?

Let's say this is my current domain where my board is installed: www.mydomain.com/forum
And I have a topic here: www.mydomain.com/forum/topic1

When I move to another domain, in this case: www.forum.mynewdomain.com
How can I make it so when someone types www.mydomain.com/forum/topic1 they are redirected to www.forum.mynewdomain.com/topic1

Is this possible?
The reason I'm asking is because I currently have hosting and domain that uses SSL, but I'm 100% sure I will eventually move this board to a new domain that makes more sense, but right now I can't afford 2 hostings, so I will use the current domain to keep growing the community (this one has SSL already) and when I can afford the final domain, I will transfer it, but I wanted to make sure that links won't be broken.
Last edited by Mick on Sat Dec 09, 2023 5:42 pm, edited 1 time in total.
Reason: Solved for now.
DANNY WYATT - Musician, music producer, songwriter, DJ

🔗 Official Website: https://iamdannywyatt.com
📸 Instagram: https://instagram.com/iamdannywyatt
User avatar
warmweer
Jr. Extension Validator
Posts: 11407
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Moving board to new domain - old links will work?

Post by warmweer »

Danny Wyatt wrote: Mon Dec 04, 2023 12:29 pm Let's say this is my current domain where my board is installed: www.mydomain.com/forum
And I have a topic here: www.mydomain.com/forum/topic1

When I move to another domain, in this case: www.forum.mynewdomain.com
How can I make it so when someone types www.mydomain.com/forum/topic1 they are redirected to www.forum.mynewdomain.com/topic1

Is this possible?
Yep, not all that difficult but if it's your first time it does look a bit daunting.

There's some good info in Transferring Forum
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.
User avatar
Danny Wyatt
Registered User
Posts: 115
Joined: Sat Jun 04, 2022 9:09 am
Name: Danny Wyatt

Re: Moving board to new domain - old links will work?

Post by Danny Wyatt »

Thank you for sharing the link... which funny enough, is my own topic haha
I will definitely keep this as a reference when I do that.
Apparently, when I made that first change, according to this reply, I didn't change host, so I didn't need a new database.

Now if I go from www.mydomain.com to www.acompletelydifferentdomain.com, I will need a new database, right?
Meaning, I would create the new database for the new domain and then import the old one into it?
Also, I would still need to edit the cookie domain as mentioned here, right?
DANNY WYATT - Musician, music producer, songwriter, DJ

🔗 Official Website: https://iamdannywyatt.com
📸 Instagram: https://instagram.com/iamdannywyatt
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26679
Joined: Fri Aug 29, 2008 9:49 am

Re: Moving board to new domain - old links will work?

Post by Mick »

Knowledge Base - Transferring Your Board to a New Host or Domain should help with the moving, Knowledge Base - Fixing incorrect cookie settings should help with the cookies which is covered in the first one as well.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
Danny Wyatt
Registered User
Posts: 115
Joined: Sat Jun 04, 2022 9:09 am
Name: Danny Wyatt

Re: Moving board to new domain - old links will work?

Post by Danny Wyatt »

Thank you again for the extra info.
I believe I followed this instructions when I did the first move.
Now my issue is not so much related to the new board.
My issue is more related to the old links.

So if I have a topic www.myolddomain.com/topic1 and someone saves that as a browser bookmark, when I move to the new domain, if they use that URL, it will show a broken link, because there's nothing there.
So is there a way that I can make all www.myolddomain.com links redirect to www.thenewdomain.com?
So this www.myolddomain.com/topic1 will redirect the person to www.thenewdomain.com/topic1
I would assume that maybe that can be accomplished by editing the .htaccess file, maybe?
I'm not that familiar (if at all) with what can be done with the .htaccess file
DANNY WYATT - Musician, music producer, songwriter, DJ

🔗 Official Website: https://iamdannywyatt.com
📸 Instagram: https://instagram.com/iamdannywyatt
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52780
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve

Re: Moving board to new domain - old links will work?

Post by stevemaury »

No, it will take SQL. I have a query for that. Give me a few hours.

Here you go:

Code: Select all

update phpbb_posts set post_text = replace(post_text, 'www.old_domain.com', 'www.new_domain.com');
update phpbb_posts set post_text = replace(post_text, 'www.old_domain.com', 'www.new_domain.com');
If your table prefix is not phpbb_, change accordingly. Backup the posts table before running this query.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2400
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Moving board to new domain - old links will work?

Post by P_I »

stevemaury wrote: Fri Dec 08, 2023 1:15 am No, it will take SQL. I have a query for that. Give me a few hours.
How about a time machine to viewtopic.php?t=1990675. Does the SQL match?
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
janus_zonstraal
Registered User
Posts: 6468
Joined: Sat Aug 30, 2014 1:30 pm

Re: Moving board to new domain - old links will work?

Post by janus_zonstraal »

So is there a way that I can make all www.myolddomain.com links redirect to www.thenewdomain.com?
Yes make a redirect in your old domain, you can do that in the htacces or in a html page.

The solution from stevemaury is only to repair the links in your board, not to redirect from the old to the new domain.
Also you have to tell Google that you move the board.
Sorry! My English is bat ;) !!!
User avatar
Danny Wyatt
Registered User
Posts: 115
Joined: Sat Jun 04, 2022 9:09 am
Name: Danny Wyatt

Re: Moving board to new domain - old links will work?

Post by Danny Wyatt »

Thank you all for your help and feedback.
I will save this info for when I'm ready to transfer everything.
DANNY WYATT - Musician, music producer, songwriter, DJ

🔗 Official Website: https://iamdannywyatt.com
📸 Instagram: https://instagram.com/iamdannywyatt

Return to “[3.3.x] Support Forum”