adding rewrite rules
adding rewrite after param and remove "failover"
check securities