L
L
ligisayan2018-04-13 17:29:57
WordPress
ligisayan, 2018-04-13 17:29:57

How to transfer a wordpress site from a local server to a hosting with https?

Hello! I have a wordpress site on a local server. I always transferred to hosting from http without any problems, simply replacing the entry from the local server in the database with the already final domains. With secure https , such a scheme does not work anymore and as a result I get a cyclic redirect. Multilingual plugins are not installed. I'm moving the site to a subdomain of the main domain, the dns of which are tied to the cloudflare.com
service . How to make it work?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
O
Orkhan Hasanli, 2018-04-14
@ligisayan

Good afternoon!
If after the transfer there is a cyclicity, and also an error appears ... ".... a lot of redirects", then you need to delete the htaccess file.
Transfer steps:
- Fill in the database (change the domain in the wp_options table, do not forget to specify https:// and pay attention to the final slash /)
- Then fill in the files (remove htaccess + enable debug via wp-config.php). Some old versions of plugins cause errors due to the version of VP or PHP
- install the better search replace plugin and replace the domain everywhere (do not change the domain by searching and replacing through text editors)
- check the correctness of the installed certificate
- try temporarily renaming the plugins folder and check the site. Maybe some plugin is causing the error (for example, Wordpress HTTPS and others like it). Sometimes Yoast SEO automatically creates a bunch of redirects...

A
Andrey Gluk, 2018-04-13
@WPMaster

What are you doing with these sites that cyclicity appears? After all, this is not the first time I have seen such a question, so the problem still exists. For the last year, I have been transferring all projects from Open to protected, I have never caught a cycle. Maybe you are breaking the sequence? Or you shove crutches into functions in whole heaps, or maybe some "Famous" plug-in podseret. But most likely a mistake in the sequence of actions. In most cases, these are banal things, the cache has not been cleared, the protocol is not correctly installed in the database, or the certificate is stupidly wet.

M
Maybe Somebody, 2018-04-13
@maybesomebody

Dump DB -> Install plugins and configure them -> Import DB. PROFIT!

L
ligisayan, 2018-04-18
@ligisayan

The point is the Cloudflare service certificate . The CloudFlare Flexible SSL
plugin solved the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question