A
A
angelzzz2018-11-25 16:38:27
Digital certificates
angelzzz, 2018-11-25 16:38:27

How to migrate wordpress from ssl to local machine?

There is a site with an ssl certificate on wordpress. Transferred to the local computer, changed wp-config, changed https://olddomain.ru to newdomain.ru. But it gives an error ERR_SSL_PROTOCOL_ERROR and Invalid method in request \x16\x03\x01 in Apache logs. I'm running through MAMP.
How to forcefully disable SSL?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
angelzzz, 2018-11-25
@angelzzz

In general, the problem was in two places:
1. in htaccess I registered the normal path to the site (for this I had to put a clean site next to it and compare htaccess)
2. in the wp-content plugins folder I renamed the plugin that was responsible for ssl. in my case it is simple ssl, but just in case, I had to disable all the plugins in turn to find the right one

A
azaza, 2018-11-25
@natojezlo

in the database,
change the options table in 2 fields from https to http

P
Pavel, 2018-11-25
@PavelMonro

Try adding the following code to your template functions:

remove_filter('template_redirect', 'redirect_canonical');

L
lb-web, 2018-11-27
@lb-web

Forget about those crutches.
Duplicator to the rescue. And faster, and he will do everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question