Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ^SoporteGSM^ on August 26, 2020, 03:24:59 PM

Title: Help with error in transfer from one domain to another
Post by: ^SoporteGSM^ on August 26, 2020, 03:24:59 PM
I will explain the problem. I have a forum on this website (https://foro.50gsm.com) and I moved it to the main domain (https://www.50gsm.com)

In the Google Web Masters console I already did the transfer

In the old domain domain I put this in .htaccess

QuoteRewriteEngine On   
RewriteCond %{HTTP_HOST} ^foro.50gsm.com$ [OR]   
RewriteCond %{HTTP_HOST} ^www.foro.50gsm.com$   
RewriteRule (.*)$ http://www.50gsm.com/$1 [R=301,L]

However when creating a new topic in the new forum, the topic never appears, clicking on it sends me to the previous forum but without any results.

Here is an example: https://foro.50gsm.com/area-frp/rf/

I made a test topic with this name: "fr" in (https://www.50gsm.com.com) but when I click it it sends me to the url above (https://foro.50gsm.com/area -frp / rf /)


Pass everything the same to the new domain, both are exactly the same, but with a different database for each forum and according to me all the files were uploaded correctly by FTP to the new domain


Can someone please help me to know where the error is?
Title: Re: Help with error in transfer from one domain to another
Post by: shadav on August 26, 2020, 04:37:37 PM
not sure if it'll help...but
did you try the repair tool
https://wiki.simplemachines.org/smf/Repair_settings.php

Title: Re: Help with error in transfer from one domain to another
Post by: shawnb61 on August 26, 2020, 05:57:35 PM
I suspect you want your target to be https, not http, on the last line...

A tool like this might help you test:
https://htaccess.madewithlove.be/
Title: Re: Help with error in transfer from one domain to another
Post by: Arantor on August 27, 2020, 08:00:15 AM
I think you need to rebuild the cache in the pretty URLs admin area since it's still caching with the old domain.

Shawn's also right about the htaccess but that isn't the cause here, that just means you get bounced from old domain to new, then redirected to HTTPS, two hops rather than one.
Title: Re: Help with error in transfer from one domain to another
Post by: ^SoporteGSM^ on August 27, 2020, 10:41:57 AM
This means that:

1. The ideal is to eliminate modifications before a transfer?

2. The .htaccess must have https instead of http?
Title: Re: Help with error in transfer from one domain to another
Post by: Arantor on August 27, 2020, 10:43:42 AM
1. No, you should just need to fix the cache, there should be no need to remove modifications.

2. It's a recommended step for sure. But not *required*.
Title: Re: Help with error in transfer from one domain to another
Post by: ^SoporteGSM^ on August 29, 2020, 07:28:01 PM
thanks solved