在windows服务器上找不到Cakephp页面重定向到404

在windows服务器上找不到Cakephp页面重定向到404,php,windows,.htaccess,cakephp,windows-server-2003,Php,Windows,.htaccess,Cakephp,Windows Server 2003,我已经在windows服务器上上传了cakephp文件 我得到一个错误HTTP错误404.0-没有找到下面所有的页面 http://exoticvoyages.ntechinfo.com/index/index http://exoticvoyages.ntechinfo.com/index/search http://exoticvoyages.ntechinfo.com/index/getcountry http://exoticvoyages.ntechinfo.com/countries

我已经在windows服务器上上传了cakephp文件

我得到一个错误HTTP错误404.0-没有找到下面所有的页面

http://exoticvoyages.ntechinfo.com/index/index
http://exoticvoyages.ntechinfo.com/index/search
http://exoticvoyages.ntechinfo.com/index/getcountry
http://exoticvoyages.ntechinfo.com/countries/index
但是,如果我将以上所有页面重定向到,那么它就可以正常工作了

Main.htaccess文件是

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /app/
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

重新启动发动机
重写基/
重写规则^$app/webroot/[L]
重写规则(*)app/webroot/$1[L]
App.htaccess文件是

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /app/
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

重新启动发动机
重写库/应用程序/
重写规则^$webroot/[L]
重写规则(.*)webroot/$1[L]
Webroot.htaccess文件是

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /app/
    RewriteRule    ^$    webroot/    [L]
    RewriteRule    (.*) webroot/$1    [L]
</IfModule>
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /app/webroot/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

重新启动发动机
重写base/app/webroot/
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^(.*)$index.php[QSA,L]

有人能给我一个解决方案吗?

检查
Rewritebase

,以及


希望这能解决问题。

.htaccess在windows IIS上不起作用,等等。您可以使用此功能

路由中的默认路由是什么。phpRouter::connect('/',array('controller'=>'countries','action'=>'index');路由器::连接('/pages/*',数组('controller'=>'pages','action'=>'display');CakePlugin::routes();需要蛋糕。”配置'。Droutes.php';必须工作,但您在问题的顶部提到它不工作,其他的都是错误的,它们必须像索引而不仅仅是索引。如果有帮助,请参阅我的答案。。不,我创建了IndexController,但没有使用$uses=array()等模型;