Protecting Important Files

Please visit our channel & subscribe: https://youtube.com/dhakawebhost
 
One of the best edits 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.
  • 0 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

.htaccess in WordPress

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The .htaccess file...

Where the .htaccess file located and what's .htaccess got to do with It?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   The...

How to download .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   You can download a...

How to create a .htaccess file?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   Depending on your...

Where to Add Your Changes?

Please visit our channel & subscribe: https://youtube.com/dhakawebhost   When you’re...