织梦网站提示data、uploads有执行.php,简单解决办法!

网上找的解决办法是创建.htaccess文件,并写入 以下四行代码并保存。

RewriteEngine on RewriteCond % !^$ 
RewriteRule uploads/(.*).(php)$ – [F] 
RewriteRule data/(.*).(php)$ – [F] 
RewriteRule templets/(.*).(php)$ – [F]
点赞