Try to add
RewriteBase /myapp

in app/webroot/.htaccess



On Sun, Aug 31, 2008 at 12:26 PM, Wole <[EMAIL PROTECTED]> wrote:
>
> So far I have successfully setup CakePHP using XAMPP on my Mac. I am
> able to view the main page for my application with the CSS working.
> Next I created a users table, user.php model, users_controller.php,
> and my views/users/index.ctp page. The problem is when I view
> http://localhost/myapp/users in my browser I get a "404 Not Found"
> error. It says "The requested URL /myapp/users was not found on this
> server." But, if I view the "pretty url" version at 
> http://localhost/myapp/index.php/users
> I can see the main page for the users controller.
>
> I checked my httpd.conf file and everything looks right:
>
> - I uncommented the LoadModule rewrite_module modules/mod_rewrite.so
> line
>
> - I added the alias and directory information
>
> Alias /myapp /Applications/xampp/xamppfiles/htdocs/myapp/app/webroot
> <Directory "/Applications/xampp/xamppfiles/htdocs/myapp">
>    AllowOverride All
>    Options All
>    Order allow,deny
>    Allow from all
> </Directory>
>
> - In the <Directory "/Applications/xampp/xamppfiles/htdocs"> section
> of httpd.conf I also changed
>
> AllowOverride AuthConfig to read AllowOverride All
>
> I'm not sure what I'm doing wrong here. I've tested my configuration
> on  MAMP but still the same problem. I would greatly appreciate it if
> anyone can help me out here. Thanks.
> >
>

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