Added rewrite support for Lighttpd and Nginx