cakephp htaccess for production install

Posted by Joshua Foxworth on Stack Overflow See other posts from Stack Overflow or by Joshua Foxworth
Published on 2013-11-09T21:48:37Z Indexed on 2013/11/09 21:53 UTC
Read the original article Hit count: 147

Filed under:
|

So, I have cakephp installed in what I believed to be the appropriate way for production code with actual cake files above the public_html folder. The app folder is removed from the cake folder and placed at the same level.

Loading the home page works fine with the databases and the debug working.

However, in trying to run some test files I get a 404. Obviously, I need some way to direct something like www.example.com/posts/index to the proper location. I am not sure as to why this is necessary since the index.php file tells cake where the app directory is located?

Also, if I need to use the .htaccess file, how do I point to the proper location and exactly what am I pointed at?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about cakephp