我把自己的网站空间源码下载到本地  用APMServ 5.2.6 搭建了本地服务器环境   浏览器中输入这个IP测试:http://127.0.0.1/      他就自动跳转到web上去了    跳转后的地址是:http://www.xxx.com/    这是网站是在web打开的哦        是什么原因啊    
但是我输入    http://127.0.0.1/ BBS/    测试论坛却能在本地正常打开
我的网站是PHP的   请教一下大家我们才能:在本地环境中打开我的网站     

解决方案 »

  1.   

    查看根目录下的index.html,index.htm,index.php有没有跳转。
      

  2.   

    试试1楼的方法,看看根目录里的index名的文件内容!
      

  3.   

    根目录里的index名的文件内容  是这个  大家帮忙看看是怎么回事:<?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     *//**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);/** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
      

  4.   

    看看这里面的内容 wp-blog-header.php
      

  5.   

     wp-blog-header.php里面的内容是:
    <?php
    /**
     * Loads the WordPress environment and template.
     *
     * @package WordPress
     */if ( !isset($wp_did_header) ) { $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-load.php' ); wp(); require_once( ABSPATH . WPINC . '/template-loader.php' );}?>
      

  6.   

    你贴的代码是wordpress的吧 
    贴APMServ安装目录下默认的index.*
      

  7.   

    APMServ安装目录下  没找到有index.*文件哦
      

  8.   

    我实在php根目录这里面找的index.*文件  E:\APMServ5.2.6\www\htdocs