Detect if rewriting is enable or not and adapt the admin url and one typo