• Welcome to Simple Machines Community Forum. Please login or sign up.
October 19, 2021, 12:05:49 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Request - Step By Step Guide to Moving SMF Forum

Started by CR Forum, November 19, 2010, 05:32:01 AM

Previous topic - Next topic

CR Forum

Dear all
I am writing after spending significant time and effort to find a reasonable solution to what I am hoping to achieve. My target is very simple actually. My forum is installed in the root directory at my-domain.com right now. I am changing the domain ( but not my host) say to my-new-domain.com. The files will stay where they are since I will be asking my host to change the primary domain for my account. This means that as long as my domain nameserver points to my current host, and have it set up as my primary domain for my shared hosting account, I can have the forum running at my-new-domain.com within a very short time and with minimal help.

But the hard part starts here. I have more than 30K posts, more than 8k topics, and more than 15k members. I have thousands of indexed pages on search engines and my forum ranks as 1st or 2nd for most key words for the niche. I am hoping to find a way so I can redirect each and every page that is indexed to the new domain without generating any 404 errors, so that over the next few months a seamless transition to the new domian takes place. I am not an expert at this, and I am aware that this needs to be achieved through the manipulation of the .htaccess file.

I am hoping that somebody can write a step wise guide for folks like me who are trying hard to find a clear and succinct guide for this process.

Thanks for your attention
Sam

Aleksi "Lex" Kilpinen

Sorry, I was originally answering a question you didn't actually ask - Got siderailed there :P

Your easiest way would probably be to make your old domain simply redirect to your new domain,.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

CR Forum

Quote from: LexArma on November 19, 2010, 05:38:00 AM
Sorry, I was originally answering a question you didn't actually ask - Got siderailed there :P

Your easiest way would probably be to make your old domain simply redirect to your new domain,.

I would like to add a little clarity here. of course my current my-domain.com will become an addon domain and my-new-domain.com will become the primary domain. What I am hoping to specifically achieve is that all my current indexed pages will land up to the same exact page ( and not the index page) on the new domain. So it should be a page - to - page redirect for all pages that are indexed. I tried doing it ( as an experiment) form cpanel but the only page that was redirecting was the index page. If I went to google and pulled up one of my pages, it was not getting redirected anywhere. This means I need to add a whole lot more to the htaccess file I guess for a page-to-page redirection.

My questions
1. Is this possible?
2. If yes, how?

Thanks a lot for your willingness to help.
Cheers
Sam

Aleksi "Lex" Kilpinen

I believe this should work


#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.olddomain.com$[OR]
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]


A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Hj Ahmad Rasyid Hj Ismail

I suspect that you haven't use repair_settings.php yet. Follow the steps as stated by LexArma for the redirect from old domain to new domain. At the same time, run repair_settings.php on your forum new domain and change all its url to new domain and save it. No need to change the path or move any forum physical files at all. An extra advise, change your cookie too to your new domain name (yes this is a very strange advice from me ;)).

CR Forum

Thanks all. I have not done any move yet. I am just gearing myself for a move and making sure that I have all the necessary information for the move. You are free to browse my forum at www.clinicalresearchforum.com.  Will keep you all posted. Hoping to do this move in the next 2-3 days :)
Regards
Sam

Hj Ahmad Rasyid Hj Ismail

Nice theme. Well done I'd say. Will be waiting for your update then.

CR Forum

Quote from: ahrasis on November 19, 2010, 07:18:40 AM
Nice theme. Well done I'd say. Will be waiting for your update then.

Thanks a lot for your words. Eid Mubarak to you too :)

Hj Ahmad Rasyid Hj Ismail

Eid Mubarak and God Blessings to all fellow Muslims wherever they are.

CR Forum

Talked to my host. They said that for changing the primary domain on my account I will have to wait until December 10th. So will update you all kind people only after that date.

@ahrasis - Keep the new avatar. It's nice :)

CR Forum

Ok folks. I am back and I seem to have a problem. I have migrated my forum to www.clinicalresearchsociety.org. Everything is working very well there. I created an addon domain for clinicalresearchforum.com in my sharing hosting account and created a htaccess file and put in the following there:

#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.clinicalresearchforum.com.com$[OR]
RewriteCond %{HTTP_HOST} ^clinicalresearchforum.com$
RewriteRule ^(.*)$ http://www.clinicalresearchsociety.org/$1 [R=301,L]

Still when I go to clinicalresearchforum.com, it is not redirecting.  Neither are any SERP links from google. Need urgent help. I have put up a temporary index page at clinicalresearchforum.com just to tell visitors that we are migrating to a different domain.

Thanks and keenly look forward to some help here.

CR Forum

Update:

I had the Bluehost support help me a little. They created a new htaccess file with the following in it:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^clinicalresearchforum.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.clinicalresearchforum.com$
RewriteRule ^(.*)$ "http\:\/\/clinicalresearchsociety\.org\/$1" [R=301,L]

Everything is working fine. The only thing I notice is that the new urls have ?wwwRedirect in front of them. Is this normal? How should I proceed from here? Should I just sit back, relax and enjoy the ride ???? :)


CR Forum

Quote from: Illori on December 02, 2010, 12:48:38 PM
some searching on this forum lead to http://www.simplemachines.org/community/index.php?topic=312299.0

Changed my forum url in features and options to without "www". Solved the problem. Thanks a ton :)

CR Forum

Hello all
I have been testing my forum at www.clinicalresearchsociety.org. Most of the things are working fine. I noticed though that the Recently updated topics on the index page still point to the old domain (www.clinicalresearchforum.com). I have run the repair setting  and did everything. What could be problem. Do I need to change the url somewhere else as well. Please guide.
Thanks
Sam

Aleksi "Lex" Kilpinen

That sounds strange if everything else works ok, but you night want to try emptying your cache.
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

CR Forum

Quote from: LexArma on December 02, 2010, 11:26:34 PM
That sounds strange if everything else works ok, but you night want to try emptying your cache.
Emptied the cache. No difference. I observed that only the new posts have the previous domian. If you go to the recently updated topics and hover over the most recent posts, they still show the previous domain which is strange.

Aleksi "Lex" Kilpinen

And all your URL settings were changed in the repair_settings.php?
A Finnish Project Manager (Support Specialist)
 Happily running multiple SMF 2.x installations.
  Fooling around with i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

CR Forum

Quote from: LexArma on December 02, 2010, 11:38:59 PM
And all your URL settings were changed in the repair_settings.php?
I guess so but let me run it again to see if everything is alright. I will get back.

CR Forum

December 02, 2010, 11:47:20 PM #19 Last Edit: December 03, 2010, 12:57:00 AM by CR Forum
Ran repair_settings.php again. There is no problem in there. Still the most recent posts are pointing to the previous domain. Very strange! What could be the reason.

Advertisement: