A
A
Andrey_Pechurevich2020-03-14 22:06:30
Digital certificates
Andrey_Pechurevich, 2020-03-14 22:06:30

What to do with .well-known folders when moving a site to another domain?

The task was to transfer the site from the local server to the hosting, where the site had already been installed, the modified version of which I need to upload to the current domain. I prepared all the files for transfer, but when checking the host via ftp, I found, in addition to the standard wordpress files, the .well-known, cgi-bin and admin folders, after reading, I found out that the .well-known folder is responsible for generating the ssl certificate. What to do with these folders when installing a new site on the same domain (I install using duplicator) and should these folders be deleted along with all the old content?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Andrew, 2020-03-15
@deepblack

What to do with .well-known folders when moving a site to another domain?

If to another domain , then delete it, since certbot will create a new folder when generating a certificate for a new domain.
If to a new hosting , despite the fact that the domain remains the same, then copy with all the other folders

A
Anatoly, 2020-03-14
@Tolly

If you do not plan to generate a certificate, i.e. for example, the SSL certificate is provided by hosting, then the folder can not be copied.
If you have a VPS, then you probably need it. But since you ask such a question, then most likely the folders are not needed.
And what prevents copying with and without folders, if it works without, then it is not needed))

S
Sergey Sokolov, 2020-03-14
@sergiks

The folder .well-knownis created manually or by the CertBot bot to confirm that the domain belongs to you - when automatically generating and renewing a free SSL certificate from Lets Encrypt . For the site to work on https://
Do not delete it.

P
Puma Thailand, 2020-03-15
@opium

They don't need

I
iriso, 2020-03-15
@iriso

On hosting, this directory is created in order to place a file there, from a certification center. You can delete everything after the release of the certificate.

V
Viktor Taran, 2020-03-16
@shambler81

it can be removed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question