Added mod_rewrite support