Your should not be using error pages for creating clean URLs, they are for errors, nothing else. See this feature for making clean URLs: http://wiki.nginx.org/NginxHttpCoreModule#try_files Posted at Nginx Forum: http://forum.nginx.org/read.php?2,186315,186346#msg-186346