Reputation: 98
I have CakePHP installed on the root of a website and want to add a new directory with other content. So it looks like this right now: www.cakephpsite.com and I also want www.cakephpsite.com/directory.
But when I create a new folder on the root the website doens't go to that folder I just created, instead it goes to the path app/View/WrongDirectory.
I never used CakePHP before so I'm sorry if this is very basic and any help would be helpful.
My .htaccess file looks like this:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Upvotes: 0
Views: 571
Reputation: 12041
So CakePHP is expecting the files to be in the app/webroot folder. So the .htaccess file you are showing redirects EVERYTHING to app/webroot. That means you need to put your new directory in the app/webroot folder so it would be app/webroot/directory and it should work just fine.
Upvotes: 1