Thanks for the reply. I tried adding RewriteBase /myapp to app/ webroot/.htaccess but no luck. I still get the same error. I'm not even sure mod_rewrite is working properly in XAMPP, because even if I make an error in a .htaccess file, say like purposefully misspelling RewriteBase, I don't get a 500 server error. I've followed all the suggested configurations from various forums and Websites but none seem to work. Any other suggestions? Thanks.
On Aug 31, 7:10 am, [EMAIL PROTECTED] wrote: > 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/usersin 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 > > athttp://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 -~----------~----~----~----~------~----~------~--~---
