How to Disable PHP Execution in Certain WordPress Directories

How to Disable PHP Execution in Certain WordPress Directories

Webful Creations

3 года назад

231 Просмотров

You just have to create a .htaccess file in which you can paste the following code and then upload that file into wp-content/uploads directory this would disable PHP execution in your wp-content/uploads directory.

<Files *.php>
deny from all
</Files>

You can also use this code to disable php execution in any directory of any type of website.
Ссылки и html тэги не поддерживаются


Комментарии: