fix for mod_rewrite. More robust repair found for server-side.