Define a document root
Start by defining your document root (where all your publicly visible pages are).Define a front controller
Define where all requests that don’t match a file in the document root are sent. In this case,/index.php acts as a front controller and handles dynamic requests.
Because it handles dynamic requests, you want to ensure that scripts are enabled
and responses aren’t cached.
Define rules
You might want to define specific rules for the location. For example, you might want to allow all kinds of files except mp4 files.Set different rules for specific locations
You might want to set specific rules for specific locations. For example, you might have files in your/public/images directory that are served at /images.
You could define a specific cache time for them and limit them to only static image files.