basset icon indicating copy to clipboard operation
basset copied to clipboard

UriRewriteFilter for image paths in production env

Open dgorack opened this issue 11 years ago • 1 comments

I have a subfolder on my production server so the following worked to display images and fonts:

$collection->add('style.css')->apply('UriRewriteFilter')->setArguments('../');

but how do I apply that only to the production environment?

dgorack avatar Sep 06 '13 00:09 dgorack

Didn't work for me, had to put this in to make images work on local dev machine (app is in a subdir):

->setArguments(NULL, array())

Kampfbereit avatar Sep 26 '13 14:09 Kampfbereit