I'm getting strange rewriting behaviour in CakePHP.  When I navigate
to http://localhost/~bob/project, CakePHP produces a Missing
Controller page, saying Error: ~bobController could not be found.

The steps I followed:

- Ubuntu 9.04, apache2
- I used "sudo a2enmod userdir" to set up user directories.
- I extracted Cake 1.2.5 to ~bob/public_html/project.
- In all three .htaccess files ( /project, project/app and project/app/
webroot ),  I added the line : RewriteBase /~bob/project

The scaffolding is working; the following produce the correct cakephp-
generated pages for a "contacts" table.

- http://localhost/~bob/project/contacts
- http://localhost/~bob/project/contacts/add

But I'm seeing strange rewrites at the top two directory levels:

- http://localhost/~bob/project : produces: Missing Controller.
Error: ~bobController could not be found.
- http://localhost/~bob/project/index.php : resolves to the CakePHP
Release Notes placeholder page.
- http://localhost/~bob/project/app : produces: Missing Controller.
Error: WebrootController could not be found.
- http://localhost/~bob/project/app/webroot : resolves to CakePHP
Release Notes placeholder page.

I'm assuming they should all resolve to the CakePHP Release Notes
page, but I'm not sure.  The first one which is the main focus of this
post definitely seems messed up.

I've googled till my eyes bled but I seem to be going around in
circles!

Any ideas?

--~--~---------~--~----~------------~-------~--~----~
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