• Home
  • Share and earn
  • Knowledge base
  • Contact us
  • Login
  • Sign Up
Protect wordpress important files
  1. knowledge base
  2. wordpress
  3. Protect wordpress important files

One of the most important things you can make is to protect your .htaccess file along with your error logs, wp-config.php and php.ini files. Once you make the following change, attempts to access these files are denied.

<FilesMatch "^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$">
Order deny,allow
Deny from all
</FilesMatch>

Be sure to check your files and see if you have one named php.ini because you may not. Instead, you may have one called php5.ini. If this is the case, replace php.ini with php5.ini in the above rule.

Are you ready?
create an account for free.
Create Your Account

Contact us

info@hostdrop.eu
Lasnamäe linnaosa,
Sepapaja tn 6,
15551 Tallinn, Estonia

Hostdrop

  • Create a ticket
  • Share and earn
  • Knowledge base

User

  • Login
  • Sign Up