Added support for mod-rewrite