i would like to rewrite js and css files using nginx
i have this urls pattern
css :
http://myhost.com/css/min/css_home.1330004285.css
js :
http://myhost.com/js/min/js_home.1330004285.js
for the css files have to redirect to
http://myhost.com/css/min/css_home.css
and the same way for the js files
i tried to resolve this by using thi solution but i doesn't work , it showing me an error when restarting nginx server
location ~* \.(css|js) {
rewrite /(.*)\.[\d]{10}\.(css|js) $1.$2 last;
}