A
A
Aigerim11082020-05-28 22:59:34
WordPress
Aigerim1108, 2020-05-28 22:59:34

How to transfer Wordpress site from local server to hosting?

Hello. I watched the video at the link https://www.youtube.com/watch?v=26IVy-i0N3g&t=405s
and it said that the contents of the .htaccess file that is on the hosting should be copied and pasted somewhere. But what if this .htaccess file is missing? I found this file by searching, but the directory is public_html/wp-content/plugins/akismet/ and in the video this file is located in public_html. help me please

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey Gavrilov, 2020-05-28
@thexaver

Contact the hosting, they will help

O
Orkhan Hasanli, 2020-05-29
@azerphoenix

Search found this file but the directory is /public_html/wp-content/plugins/akismet/

this is clearly not the htaccess file you need. Akismet - plugin for SPAM VP.
and it said that the contents of the .htaccess file, which is located on the hosting, must be copied and pasted somewhere.

I don’t know what kind of hosting you have and what you need to copy and paste. But the VI itself, after installation / transfer, generates htaccess with the content necessary for its operation. It is possible that the htaccess on the hosting contains additional. configs. Hence the answer - contact the hosting.
Can I create a .htaccess file?

Of course you can. There's nothing forbidden about it.)

Q
QuestYouCraft, 2020-05-29
@QuestYouCraft

In order to transfer all data from one (local) hosting to another (Internet hosting), you need to transfer:
- Database phpMyAdmin
- Files
To transfer files, you need to use a ZIP archive: ie. pack them on a local server, transfer them to another server, and unzip the files on another server using the unzipper.php script .
To transfer the database, open the database in phpMyAdmin on the local server, click Quick Export, save on your computer. Next, change all URLs in the database from local to the domain that you will use. Then save in the same encoding and in the same encoding as the database. Import into a new database, having previously created it. It remains only to change the connection parameters to the new database in the wp-config.php file
If you don't understand, read this article: https://moytop.com/sozdanie-sayta/perenos-sayta-wo...

M
Mikhail Kobzarev, 2020-05-29
@mihdan

There are not so many options, the main thing is to do it right, without breaking the serialized data during the transfer:

  • Database Search and Replace Plugin
  • WP Migrate DB Plugin
  • Console ToolWP-CLI
  • Duplicator Plugin

For more details, you can see my article "How to transfer a site to WordPress?" https://www.kobzarev.com/wordpress/wordpress-migrate/.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question