遵循networking上的一些指南,我已经为我的WordPress安装创build了以下.htaccess:
# protect the htaccess file <files .htaccess> order allow,deny deny from all </files> # protect wpconfig.php <files wp-config.php> order allow,deny deny from all </files>
加上chmod wp-config.php 600 and .htaccess 644
。
哪种testing方法最简单? 万一,我可以创build一些其他文件来validation工作。 我只想确定一下。
如果你想从networking外部testing它,就好像你是一个普通的互联网用户,你可以尝试使用一个代理服务器,比如Hidemyass或者Proxify 。
要testing指令是否正常工作,只需尝试浏览文件:
http://yoursite.com/wp-site/.htaccess http://yoursite.com/wp-site/wp-config.php
在访问这些文件时,你应该得到一个错误页面。 尝试删除指令并再次testing,看到一个有效的页面将加载。