Implement redirect handler