本地测试网站 总跳转到web网站 是什么原因??

yuliuqiang 2010-11-24 02:11:32
我把自己的网站空间源码下载到本地 用APMServ 5.2.6 搭建了本地服务器环境

浏览器中输入这个IP测试:http://127.0.0.1/ 他就自动跳转到web上去了 跳转后的地址是:http://www.xxx.com/ 这是网站是在web打开的哦 是什么原因啊


但是我输入 http://127.0.0.1/ BBS/ 测试论坛却能在本地正常打开


我的网站是PHP的 请教一下大家我们才能:在本地环境中打开我的网站

...全文
342 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yuliuqiang 2010-11-24
  • 打赏
  • 举报
回复
我实在php根目录这里面找的index.*文件 E:\APMServ5.2.6\www\htdocs


yuliuqiang 2010-11-24
  • 打赏
  • 举报
回复
APMServ安装目录下 没找到有index.*文件哦
heyli 2010-11-24
  • 打赏
  • 举报
回复
你贴的代码是wordpress的吧
贴APMServ安装目录下默认的index.*
yuliuqiang 2010-11-24
  • 打赏
  • 举报
回复
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' );

}

?>
heyli 2010-11-24
  • 打赏
  • 举报
回复
看看这里面的内容 wp-blog-header.php
yuliuqiang 2010-11-24
  • 打赏
  • 举报
回复
根目录里的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');
?>
不喝水的鱼 2010-11-24
  • 打赏
  • 举报
回复
试试1楼的方法,看看根目录里的index名的文件内容!
LuciferStar 2010-11-24
  • 打赏
  • 举报
回复
查看根目录下的index.html,index.htm,index.php有没有跳转。

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧