bramus / router

A lightweight and simple object oriented PHP Router
MIT License
1.09k stars 245 forks source link

How can i serve the static folder using Router? #203

Closed gari-ma closed 1 year ago

gari-ma commented 1 year ago

I have a folder called public in my working directory. I want to make the static folder routes available to use. How can I do so?

bramus commented 1 year ago

If you’ve configured your webserver correctly, it will serve these files out of the box. See the demo .htaccess for example, which does this for Apache.