right place to enable/disable rewrite url