Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7873103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:24:53+00:00 2026-06-03T02:24:53+00:00

If I go to this URI /app_dev.php/css/eabd201_jquery.ui.theme_15.css it gives me that CSS file, which

  • 0

If I go to this URI

/app_dev.php/css/eabd201_jquery.ui.theme_15.css

it gives me that CSS file, which is what I would expect, but if I go to this URI,

/app_dev.php/css/images/ui-icons_222222_256x240.png

I get this error:

No route found for “GET /css/images/ui-icons_222222_256x240.png”

It seems like there must be a way to tell Symfony not to try to go through routing for /css/* paths. (I know the file exists.) How might I do that?

Edit: here’s my .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:24:54+00:00Added an answer on June 3, 2026 at 2:24 am

    I don’t know if it’s exactly your case but imagine the directory structure:

    ├── css
    │   ├── style.css
    ├── images
    │   ├── foo.png
    

    In style.css, as soon as you are referencing your images using relative paths like url(../images/foo.png), so it can’t work if you move style.css into another directory.

    You’re using Assetic to render your CSS files so assetic “moves” this CSS file into the /app_dev.php/css directory which does not really exist and is handled by the app_dev.php controller. So now, the relative path to the image does not point to the image but to /app_dev.php/images/foo.png which also does not really exist and is handled by the app_dev.php controller.

    Hopefully it’s a really common problem and there is a built-in solution: the cssrewrite filter.

    You can either add it to your {% stylesheet %} tags:

    # app/config/config.yml
    assetic:
        # ...
        filters:
            cssrewrite: ~
    

    {# your template #}
    
    {% stylesheet 'bundles/foo/css/style.css' filter='cssrewrite' %}
    

    Or apply it to every CSS file:

    # app/config/config.yml
    assetic:
        # ...
        filters:
            cssrwrite:
                apply_to: \.css$
    

    It will take care of rewriting this kind of paths for your.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've got some Java code that uses Jakarta HttpClient like this: URI aURI
I have this method for grabbing the file name from a string URI. What
I have in my Windows Phone app several images that are binded to uri's
I have found some evidence that this is possible, self.scene = Canvas() Application.LoadComponent(self.scene, Uri('app.xaml',
I use this URI to search the Play Store , but the Android docs
http://something.com:80/somedir/index.html?type=test;one=onevalue#nose This is typical URI structure my question is what is #nose and how
This will be simple for you guys: var uri = new Uri(pack://application:,,,/LiftExperiment;component/pics/outside/elevator.jpg); imageBitmap =
This is the code I currently use: <% Uri MyUrl = Request.UrlReferrer; if( MyUrl
I noticed the Uri.Builder in this answer And I wondered if I can use
I have got this code: XDocument xdoc = XDocument.Load(URI); XElement root = xdoc.Element(forecast); //get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.