# Slim Skeleton htaccess url

**URL:** <https://discourse.slimframework.com/t/slim-skeleton-htaccess-url/1774>\
**Category:** Questions\
**Created:** [August 28, 2017, 8:02am UTC](https://discourse.slimframework.com/t/slim-skeleton-htaccess-url/1774 "2017-08-28T08:02:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dksuresh16](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dksuresh16](https://discourse.slimframework.com/u/dksuresh16)\
**Post date:** [August 28, 2017, 8:02am UTC](https://discourse.slimframework.com/t/slim-skeleton-htaccess-url/1774/1 "2017-08-28T08:02:50Z")

</div>

Hi, I’m new to Slim framework. I have downloaded slim skeleton project under folder /document\_root/api

I able to access API through [http://localhost/project/api/public/hello](http://localhost/project/api/public/hello)

But I want it to be [http://localhost/project/api/hello](http://localhost/project/api/hello)

What change I have to make in htaccess.

---

<div class="post-metadata">

**Author:** ![marcelloh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/marcelloh/32/404_2.png) [@marcelloh](https://discourse.slimframework.com/u/marcelloh)\
**Post date:** [August 28, 2017, 12:13pm UTC](https://discourse.slimframework.com/t/slim-skeleton-htaccess-url/1774/2 "2017-08-28T12:13:31Z")

</div>

This is mine (put it in the “public” directory.

```
<IfModule mod_rewrite.c>
Options -MultiViews

RewriteEngine On

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
</IfModule>

```

and of course your site-enabler (in apache):

```
<VirtualHost *:80> 
    DocumentRoot "your_full_dir_to_that_public_dir/"
    ServerName project.dev
    ServerAlias *.project.dev
    <Directory ""your_full_dir_to_that_public_dir/">
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
```

---

<div class="post-metadata">

**Author:** ![dksuresh16](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dksuresh16](https://discourse.slimframework.com/u/dksuresh16)\
**Post date:** [August 30, 2017, 5:28pm UTC](https://discourse.slimframework.com/t/slim-skeleton-htaccess-url/1774/3 "2017-08-30T17:28:42Z")

</div>

Thank U 🙂
