News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Help with error in transfer from one domain to another

Started by ^SoporteGSM^, August 26, 2020, 03:24:59 PM

Previous topic - Next topic

^SoporteGSM^

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?

shadav


shawnb61

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/
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Arantor

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.

^SoporteGSM^

This means that:

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

2. The .htaccess must have https instead of http?

Arantor

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*.


Advertisement: