Linkassets=True And Protected/.htaccess


We have configured our app with linkAssets = true.

And so, files that are in webroot/assets are symlinked to assets folders in protected.

But default .htaccess in protected is

deny from all

So requets to assets send 403 errors

We had to change protected/.htaccess to

allow from all

We plan to modifiy apache vhost configuration for better conditionnal permissions

But could you tell us what is the best pratices for assets symlinked ?

Thanks for help

Are you using

Options +FollowSymLinks

In your apache virtual host config?


In webroot/.htaccess there is :

Options +FollowSymLinks -Multiviews