it's not redirect. i have .php file, but no .css file. if in apache, rewrite rule is like this : <IfModule mod_rewrite.c> RewriteEngine On RewriteRule custom.css custom.php [L,QSA] </IfModule> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,220792,220794#msg-220794