To correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to

今天第一篇文章先解决一个wordpress中遇到的问题,问题是有一个WP的数据库管理插件wp-dbmanager安装后引起的,问题描述如下:

在使用wordpress 2.8版本并安装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/websitename/public_html/wp-content/backup-db

大致意思是:

您的备份文件夹可能会暴露给访问者

要更正此问题,把.htaccess文件从wp-content/plugins/wp-dbmanager 移动到  wp-content/backup-db,但你这么做后还是不能解决红色警示框出现的问题,这么办呢?

治标不治本的错误方法:

我第一次遇到这个问题时找到国内一个人给的解决方法如下:

“在wp-dbmanager.php中搜索出

add_action('admin_notices', 'dbmanager_admin_notices');

把这句删除,在335行,红色提示就会消失。”

正确的解决办法:

后来我在google.com里搜索国外的解决办法时发现以上的办法完全是不负责任的做法,呵呵,正确的方法说出来你又会觉得恍然大悟了,方法如下:

The wp-dbmanager folder (likely in your wp-content/plugins folder) has a file called htaccess.txt

1. Use FTP and download that file to your local computer
2. Then still using FTP upload that file to the /home/websitename/public_html/wp-content/backup-db folder and rename the file .htaccess

意思是把.htaccess文件从wp-content/plugins/wp-dbmanager 移动到  wp-content/backup-db后,htaccess文件是以htaccess.txt存在的,这时把htaccess.txt重命名为.htaccess文件就可以了,然后刷新,一切OK了,简单吧。