Zend Framework - 没有错误404

时间:2012-04-30 10:29:18

标签: zend-framework http-status-code-404 zend-auth

我正在用ZF开发的网站撕开我的头发。在离岸公司开发的时候,我必须尝试对其进行修改......

目前,如果我访问该网站:http://www.riads-marrakech.org/

如果我http://www.riads-marrakech.org/sgfdgdfgdg =>没有错误,只显示“auth”而不是404

的主要内容布局

我已经无法为多语言内容生成不同的网址(请参阅:Zend Framework Multilingual route

我猜这个错误是由Zend_Auth转发的。该站点使用配置文件acl.ini:

[roles]
guest = null
planificateur = null
administrateur = null
webmaster = null
Standard = null

[ressources]
index = null
error = null
inscription = null
inscriptionnewsletter = null
utilisateur = null
search = null
apropos = null
ficheriad = null
admin_index = null
admin_users = null
admin_agendas = null
renseignement = null
agenda = null
loisir = null
admin_config = null
admin_usersprofile = null
admin_typemisenavant = null
admin_misenavant = null
admin_misenavantautres = null
admin_misenavantbonplan = null
admin_misenavantoffrespeciale = null
admin_etablissement = null
admin_prestation = null
admin_lieutouristique = null
admin_exclusivite = null
admin_chambre = null
admin_prixetablissement = null
admin_prixchambre = null
admin_pack = null
admin_compositionpack = null
admin_newsletter = null
admin_statistique = null
language = null

[planificateur]
allow.admin_index = deconnect
allow.error = null
allow.index = null
allow.inscription = null
allow.search = null
allow.admin_agendas = null
allow.language = null

[and the same for each role]

我的HTACCESS:

ErrorDocument  404  /404.php
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)|$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

任何人都可以帮助我,请T_T?

1 个答案:

答案 0 :(得分:0)

我发现了问题。

有一个插件Auth,测试和重定向...我只是改变例程,这很好^^