我的网站根目录和yii文件夹是并列关系的,index.php代码如下:
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
$app=Yii::createWebApplication($config);
Yii::app()->setTimeZone('UTC');
$app->run();
我的猜想是 我在配置httpd.ini的时候只配置了网站根目录里面的内容被重写并且隐藏index.php,但是根目录外的yii内容则无法读取,CGridView等的ajax都无法响应,下面是我现在的httpd.ini内容:
[ISAPI_Rewrite]
RewriteRule /(?!favicon.ico)(?!images)(?!css)(?!scripts)(?!nbproject)(?!assets)(?!themes)(?!protected)(.*)$ /index\.php [I,L]
大家帮我看看,我应该怎样修改呢?