# \[SOLVED\] How to make slim work in an online enviroment?

**URL:** <https://discourse.slimframework.com/t/solved-how-to-make-slim-work-in-an-online-enviroment/905>\
**Category:** Questions\
**Created:** [November 15, 2016, 1:12pm UTC](https://discourse.slimframework.com/t/solved-how-to-make-slim-work-in-an-online-enviroment/905 "2016-11-15T13:12:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devc0n](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@devc0n](https://discourse.slimframework.com/u/devc0n)\
**Post date:** [November 15, 2016, 1:12pm UTC](https://discourse.slimframework.com/t/solved-how-to-make-slim-work-in-an-online-enviroment/905/1 "2016-11-15T13:12:10Z")

</div>

Hi,

I am new to the slim framework (and rest api’s in general).  
and i wonder how i can make slim work when i push it to my registered domain. i could not find a way on how to do this.

the request i am looking for should look something like this: “[http://www.mywebsite.com/api](http://www.mywebsite.com/api)”.  
and catching the routes after that.

any suggestions on tutorials/guides or an explenation on how to do this would be very much appreciated

---

<div class="post-metadata">

**Author:** ![tflight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/tflight/32/1205_2.png) [@tflight](https://discourse.slimframework.com/u/tflight)\
**Post date:** [November 15, 2016, 2:39pm UTC](https://discourse.slimframework.com/t/solved-how-to-make-slim-work-in-an-online-enviroment/905/2 "2016-11-15T14:39:56Z")

</div>

Can you explain a bit about your setup and the steps you have tried? It shouldn’t work any different hosted versus locally. What does your route definition look like? Are you using Apache? Have you setup `AllowOverride`? What does your `.htaccess` file look like? What error do you see either on the page or in your server’s error log?

---

<div class="post-metadata">

**Author:** ![devc0n](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@devc0n](https://discourse.slimframework.com/u/devc0n)\
**Post date:** [November 15, 2016, 3:09pm UTC](https://discourse.slimframework.com/t/solved-how-to-make-slim-work-in-an-online-enviroment/905/3 "2016-11-15T15:09:22Z")

</div>

After searching alot i figured that i had to put the classes and vendor etc in the source folder of the server and the public in my public\_html together with the .htacces file. it works flawless now,  
thanx for the reply though 🙂
