Static Files

dscape edited this page Mar 15, 2011 · 2 revisions

Static Files

If no match is found rewrite will dispatch your query to a /static/ folder where you should keep all your static files. This way you don't have to create routing rules for static files.

 Request       : GET /css/style.css
 routes.xml    : <routes> <root> server#version </root> </routes> 
 Dispatches to : /static/css/style.css

You can change change the file mapping if you like, just refer to Customize File Path.