Monday, June 23, 2014

Re: index.php not found?



On Sunday, 22 June 2014 20:33:16 UTC+2, Kevin Burton wrote:
I used Composer to do the installation.

Since it seems to be more or less convention I would like to try to get mod_rewrite working. I am not sure what additional information is needed to find out the cause of why it is not working.

Well, I'm sure it's not your intention but you're doing something a bit weird. 

Ordinarily to use cake you download it to a web-accessible location (i.e. put it in whatever folder corresponds to http://localhost) and browse to it (e.g. http://localhost/cakeblog) - I'd recommend starting from that basis, no funny business.


If you're going to configure an alias - make it point at the webroot directory. i.e.

 http://localhost/blog === C:/Users/Kevin/cakeblog/app/webroot

That would make the static files work irrespective of whether mod rewrite is enabled or not. 

It sounds likely from what you're describing that you'd need to add a RewriteBase /blog/ for what you've setup (I get a 404 indicating that index.php is not present). If you still need help you should clearly state:
  • the url requested
  • the exact error message recieved. "I get a 404" is actually ambiguous - an apache 404 or a cakephp 404?
 
AD

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: