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>
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.