出来首页后,点击一个栏目
从:e:\wamp\www\myweb\app\tpl\home\index\index.html 页面点击的
进入栏目,地址栏显示为:
http://localhost/invest/index.html
应该指向在:
e:\wamp\www\myweb\app\tpl\home\invest/index.html才对,现在就指向在:
e:\wamp\www\invest\index.html
造成无法找到文件
入口文件:
<?php
if(isset($_SERVER['HTTP_X_REWRITE_URL'])){
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
$___s = explode(".",$_SERVER['REQUEST_URI']);
$____s = explode("?",$_SERVER['REQUEST_URI']);
$_SERVER['PATH_INFO'] = $____s[0];
$GLOBALS['is_iis'] = true;
}
?>
<?php
define('THINK_PATH',dirname(__FILE__).'/CORE/');
define('APP_NAME',dirname(__FILE__).'App');
define('APP_PATH',dirname(__FILE__).'/App/');
define('APP_DEBUG',0);
define('APP_PUBLIC_PATH',dirname(__FILE__).'/Public');
require(THINK_PATH.'/Core.php');
?>
最佳答案