测试管理,自动化测试、手机客户端测试、wap站点测试研究

wordpress 主页显示问题

上一篇 / 下一篇  2009-08-13 14:12:58 / 个人分类:敏捷测试

昨晚安装完wordpress后,在登录页面输入用户名和密码,后可以正常登陆,但是尽然显示apache的目录,不过选择目录下的index.php可以进入wordpress管理后台。在后台发表blog,却无法进入blog主页,有点郁闷。51Testing软件测试网 z6FluOT$n\4H
51Testing软件测试网 j F[A,h#fy#kF~
解决方法:
51Testing软件测试网.}\5aPZd$G_$[
1,找到apache安装目录下的httpd.conf
修改
Options Indexes FollowSymLinks为
Options -Indexes
51Testing软件测试网6m4ix[R)A x
添加index.php
<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>

m;}S!\z!^)?[C3\0
2,修改wordpress下wp-login.php
找到
if ( !is_wp_error($user) ) {
// If the user can't edit posts, send them to their profile.
if ( !$user->has_cap('edit_posts') && ( empty( $redirect_to ) || $redirect_to == 'wp-admin' || $redirect_to == admin_url() ) )
$redirect_to = admin_url('profile.php');
wp_safe_redirect($redirect_to);
exit();
}
将语句中的$redirect_to == 'wp-admin'修改为$redirect_to == 'wp-admin/index.php'

\v%]TO!Y0
3,重启apache服务
51Testing软件测试网$b2k.`'^ zzT/A
4,ok,嘿嘿,有自己的博客站点了

TAG:

 

评分:0

我来说两句

Open Toolbar