# How i can remove public from url?

**URL:** <https://discourse.slimframework.com/t/how-i-can-remove-public-from-url/733>\
**Category:** Questions\
**Created:** [September 18, 2016, 2:46pm UTC](https://discourse.slimframework.com/t/how-i-can-remove-public-from-url/733 "2016-09-18T14:46:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musaev.haybulla](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@musaev.haybulla](https://discourse.slimframework.com/u/musaev.haybulla)\
**Post date:** [September 18, 2016, 2:46pm UTC](https://discourse.slimframework.com/t/how-i-can-remove-public-from-url/733/1 "2016-09-18T14:46:10Z")

</div>

Hello.

I want remove public folder from url. But i don’t want remove public folder and move index.php in root. This is possible?..

---

<div class="post-metadata">

**Author:** ![pietmarcus](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/pietmarcus/32/215_2.png) [@pietmarcus](https://discourse.slimframework.com/u/pietmarcus)\
**Post date:** [September 19, 2016, 2:09pm UTC](https://discourse.slimframework.com/t/how-i-can-remove-public-from-url/733/2 "2016-09-19T14:09:17Z")

</div>

In the configuration of your webserver (like Apache) you have to point the DocumentRoot of your site to [slim-install-dir]/public. That way, you won’t have any traces of ‘public’ in your urls.

The .htaccess and index.php in the public-folder take care of setting up the framework so all the routings work.
