Resolved.

For the record, the problem here was with the Ensim control panel used
by the hosting provider.  Ensim apparently reserves the word 'users',
'admin' and possibly others for its own pathnames.  As a result if you
have a model called 'users' and try to access http://www.domain/users/action,
Ensim intercedes and prevents the execution of the cake index.php. It
then returns a 404 because it does not know what to do with /action.
(The same thing would happen with admin routes.)

My solution was to change my paths to www.domain.com/members/action
and then use mod_rewrite to alter to index.php?url=users/action.
The .htaccess file was as follows:

RewriteBase /
<IfModule mod_rewrite.c>
    Options -MultiViews
    RewriteEngine On
    RewriteRule ^members(.*)$ users$1 [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

Although I still needed to change my redirect statements internal to
my controllers this allowed me to avoid renaming my model and
controller.  I am sure there are other ways to solve this with custom
routes or by overriding the default naming conventions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to