add before filter redirect for naked url