# Sub folder not found

**URL:** <https://discourse.cakephp.org/t/sub-folder-not-found/2478>\
**Category:** Need Help\
**Created:** [April 25, 2017, 5:39pm UTC](https://discourse.cakephp.org/t/sub-folder-not-found/2478 "2017-04-25T17:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranabesh](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@pranabesh](https://discourse.cakephp.org/u/pranabesh)\
**Post date:** [April 25, 2017, 5:39pm UTC](https://discourse.cakephp.org/t/sub-folder-not-found/2478/1 "2017-04-25T17:39:24Z")

</div>

Hello,  
I m using cakephp 2. I have install it on AWS and nginx server. the site is working perfectly. but I wants to access sub folder but its deny . So please help me.  
Here is my sub folder URL.

[https://mysponsers.com/m1](https://mysponsers.com/m1)

Already changes .htaccess but its failed to access the sub folder .  
sub folder name is "m1"  
Below the .htaccess code

RewriteEngine on RewriteBase /m1/ RewriteCond %{REQUEST\_FILENAME} !-d RewriteCond %{REQUEST\_FILENAME} !-f RewriteRule ^(.\*)$ index.php?url=$1 [QSA,L]

Please review the .htaccess code and help me.

Thanks

---

<div class="post-metadata">

**Author:** ![akkaweb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/akkaweb/32/53_2.png) [@akkaweb](https://discourse.cakephp.org/u/akkaweb)\
**Post date:** [April 27, 2017, 3:48pm UTC](https://discourse.cakephp.org/t/sub-folder-not-found/2478/2 "2017-04-27T15:48:54Z")

</div>

I think the `m1` subfolder would have to be in `webroot` to be accessed like that. Is it there? Can you provide the absolute path for your subfolder?
