解决方法:
1,找到apache安装目录下的httpd.conf
修改
Options Indexes FollowSymLinks为 Options -Indexes
添加index.php
<IfModule dir_module> DirectoryIndex index.html index.php </IfModule>
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'
3,重启apache服务
4,ok,嘿嘿,有自己的博客站点了