我的apache的根目录配成这样:
<VirtualHost *:80>
ServerName php.gw.com.cn
DocumentRoot "D:\xampp\htdocs\dzh"
#ErrorLog "logs/dev.gwallan.com-error.log"
#CustomLog "logs/dev.gwallan.com-access.log" combined
RewriteEngine On
RewriteCond %{REQUEST_URI} \.php$
RewriteRule ^(.*)\.php$ /php/$1.php [L]
RewriteRule ^(.*)$ /html$1 [L]
</VirtualHost>
我运行:http://php.gw.com.cn/ci/index.php 首页是正常的
但是我运行http://php.gw.com.cn/ci/index.php/welcome
就会出现:
Not FoundThe requested URL /ci/index.php/welcome was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 Server at php.gw.com.cn Port 80
这样的情况
请大侠们指教 谢谢!!!! |