rewrite url seo

Joel Azemar lists at
Wed May 5 13:18:04 MSD 2010

I want to improve my urls for seo

I'm with rails attachment_fu

I want change this url


like that :


I tried it

location ~* ^/attachments { rewrite
^/attachments/([0-9]+)/([0-9]+)/(.*)$ /my_keywords_seo/images/$3 last; }

the url is rewritten, however, the resource is not found !

However i read in

Flags can be any of the following:
last - completes processing of rewrite directives, after which searches
for corresponding URI and location

I don't understand ...

Somebody can help me ?
Posted via

More information about the nginx mailing list