Thursday, December 18, 2014

Re: Not allowed use mod_rewrite... Trying to get pretty urls to work... No css or js

Sorry HK, but the docs show that Apache's DocumentRoot should be set the webroot folder!

From the 2.x Docs under Installation:

Production

A production installation is a more flexible way to setup CakePHP. Using this method allows an entire domain to act as a single CakePHP application. This example will help you install CakePHP anywhere on your filesystem and make it available at http://www.example.com. Note that this installation may require the rights to change the DocumentRoot on Apache webservers.

Unpack the contents of the CakePHP archive into a directory of your choice. For the purposes of this example, we assume you chose to install CakePHP into /cake_install. Your production setup will look like this on the filesystem:

/cake_install/      app/          webroot/ (this directory is set as the ``DocumentRoot``           directive)      lib/      plugins/      vendors/      .htaccess      index.php      README  

Developers using Apache should set the DocumentRoot directive for the domain to:

DocumentRoot /cake_install/app/webroot  

If your web server is configured correctly, you should now find your CakePHP application accessible at http://www.example.com.

Thanks for looking into my problem, HK

Greg


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