How i can remove public from url?


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

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.

1 Like