Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UriRewriteFilter for image paths in production env #198

Open
dgorack opened this issue Sep 6, 2013 · 1 comment
Open

UriRewriteFilter for image paths in production env #198

dgorack opened this issue Sep 6, 2013 · 1 comment

Comments

@dgorack
Copy link

dgorack commented Sep 6, 2013

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?

@Kampfbereit
Copy link

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants