Welcome to Lesson 2 of the WordPress security series. In the previous lesson, you have successfully learned how to set roles to users.
👉This lesson will teach you how you can move wp-config file outside the root directory of your website.
👉Enrol here for complete WordPress security course: https://astra.sh/WordPress-Security-C...
As you know the wp-config file contains confidential information about your website's configuration, database, etc. It is generally located in the root directory of your website and faces risks due to the obviousness of location.
👉Here is how you can move wp-config out of root directory:
Step 1 - Go to your FTP client like Filezilla
Step 2 - Navigate to public_html folder and copy the contents of the wp-config file.
Step 3 - Create a wp-config folder outside the public_html and paste the contents there.
Step 4 - Save the contents and refresh your website to see if it's working fine.
👉Want access to complete course?
👉Want a WordPress security certification?
👉Are you an agency, looking for a security badge?
👉Enrol here for complete WordPress security course: https://astra.sh/WordPress-Security-C...