fixes for mod_rewrite detect