Added mod_rewrite support + logs.