'showscriptname' => False 配置问题

配置如下

rewrite_module模块开启。

http配置

<Directory "D:\NetBeansProjects\huanghe-web/">

Options Indexes FollowSymLinks MultiViews


AllowOverride all


Order allow,deny


Allow from all

</Directory>

.htacces 配置

Options +FollowSymLinks

IndexIgnore /

RewriteEngine on

if a directory or a file exists, use it directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

otherwise forward it to index.php

RewriteRule . index.php

htacces 路径

huanghe-web // web根目标

.htacces

console

其他文件


‘showScriptName’ => false注释这个开关时,访问没有问题。

XXXX/console/index.php/site/contact 访问没有问题。

开启showScriptName’ => false

首页console/ 可以访问。其他页面如:console/site/logout

报错The requested URL /NetBeansProjects/huanghe-web/index.php was not found on this server.

修改htasses文件 RewriteRule . console/index.php 问题照旧

The requested URL /NetBeansProjects/huanghe-web/console/index.php was not found on this server.

1、我的配置哪里错误?

2、开发流程问题,是不是在开发前尽早的吧url模式顶一下来。如果最后做这个工作会不会引起工程改动?

3、改成path模式后gii如何访问?

问题似乎与我的工程是虚拟目录有关。

问题似乎与我的工程是虚拟目录有关。