# Different subfolder route question

**URL:** <https://discourse.slimframework.com/t/different-subfolder-route-question/2559>\
**Category:** Questions\
**Created:** [July 27, 2018, 4:14pm UTC](https://discourse.slimframework.com/t/different-subfolder-route-question/2559 "2018-07-27T16:14:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meazy](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@meazy](https://discourse.slimframework.com/u/meazy)\
**Post date:** [July 27, 2018, 4:14pm UTC](https://discourse.slimframework.com/t/different-subfolder-route-question/2559/1 "2018-07-27T16:14:51Z")

</div>

I have 2 slim apps in the same directory. They both work, meaning I can get to them and all the routes work within the app. The only problem I am having is with this

`$app->get('/', App\Action\Auth\Authentication::class . ':getSignIn') ->setName('home_page');`

I cannot get to ‘/’. When I sign-out I am suppose to go back to the ‘homepage’, but instead i go the the root directory and get a 403 Forbidden because there is nothing in the root except two folders with slim apps in them. I have tried messing with my .htaccess, but have no idea what I am doing because like I said all my routes work except for the ‘root’ route. How do I fix this?

---

<div class="post-metadata">

**Author:** ![victor](https://avatars.discourse-cdn.com/v4/letter/v/3e96dc/32.png) [@victor](https://discourse.slimframework.com/u/victor)\
**Post date:** [August 1, 2018, 7:51am UTC](https://discourse.slimframework.com/t/different-subfolder-route-question/2559/2 "2018-08-01T07:51:03Z")

</div>

Hi,

with more information maybe we could help you.  
But, depends on server config and htaccess, slim gets root folder and you need to specify subfolder in routes:

```
$app->get('/subfolder_name', App\Action\Auth\Authentication::class . ':getSignIn')->setName('home_page');

```

Regards
