Question

I'm tearing my hair with a site developed by ZF. I have to try to make changes on it while it was developed by offshore companies ...

Currently, if I go on the site: http://www.riads-marrakech.org/

If I http://www.riads-marrakech.org/sgfdgdfgdg => no error, just the main content layout that displays "auth" instead of a 404

I already can not generate different urls for multilingual content (see: Zend Framework Multilingual route)

I guess this error is relayed by Zend_Auth. This site uses a config file 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]

My 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]

Anyone can help me, please T_T ?

Was it helpful?

Solution

I find the problem.

There is a plugin Auth which test and redirect... I just change the routine and it's good ^^

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top