How to Safely Deploy WordPress Site

wordpress deployment

The official WordPress site provides a three-minute time span to deploy WordPress site, many people deploy their WordPress site in this way, but in today’s era of rampant hackers, have you ever worried about the security of this deployment? Obviously, most people upload the WordPress core files to the root directory and then start to deploy. So, it is difficult to escape the scanning of some tools. It is recommended to change the installation directory of WordPress. Create a directory under the root directory that is “scattered”. The purpose is to make it hard to guess. Install in this directory. As for how to upload and install, it is beyond the scope of this article, so there will be no elaboration here.

Most people will say they don’t want their website address to look like this:

http://www.mydomain.com/ainxqihdaoadahf/

Yes, this is unbearable for anyone. Now let turn http://www.mydomain.com/ainxqihdaoadahf/ into http://www.mydomain.com, which will be implemented using WordPress pure technology without affecting the site. Now after copying the index.php and .htaccess files in the “/ainxqihdaoadahf” directory to the root directory. Generally, the generation of .htaccess directories will be automatically generated as long as a fixed link is set up.

Open the index.php file and find the following line:

require (‘. /wp-blog-header.php’);

Change to

require (‘./ jutouwangmingyue / wp-blog-header.php’);

Then use http://www.mydomain.com/ainxqihdaoadahf/wp-admin to log in to the background of the website, click Settings “General, look for the following text:

  • WordPress address (URL)
  • Site address (URL)

Many people have been confused about what this means? Because many people set the two to be the same, and the user can control the site normally without modification when installing it. In fact, for “WordPress address (URL)”, it is the installation directory of the WordPress core files, and “site address (URL)” is the site address displayed in the foreground. So, we can set it like this:

WordPress address (URL): http://www.mydomain.com/ainxqihdaoadahf/

Site address (URL): http://www.mydomain.com/

At this point, the deployment of the site is more reasonable and the security is strengthened.

You May Also Like

About the Author: BW

Leave a Reply

Your email address will not be published. Required fields are marked *