给WP安装数据库备份工具WP-DBManager,完成后显示

Your backup folder MIGHT be visible to the public

To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to /home/……/zcmhi.com/htdocs/wp-content/backup-db

可以用以下方式解决:

1.自制.htaccess 文件内容,该内容可在wp-content/plugins/wp-dbmanager/ 的htaccess 文件中找到。

<Files ~ ".*\..*">
order allow,deny
deny from all
</Files>

保存这段代码为 任意名.htaccess

2.制作转换脚本

@ren "%~f1" .*

保存这段代码为任意名.bat

3.把任意名.htaccess拖拽到任意名.bat上,将产生的.htaccess上传至指定目录下wp-content/backup-db即可