Options -Indexes +SymLinksIfOwnerMatch
RewriteEngine on
RewriteBase /payroll

RewriteCond %{REQUEST_URI} !^/storage/

# Don't apply to URLs that go to existing files or folders
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all those to insert /folder
RewriteRule ^(.*)$ /storage/$1 [L]
