How to redirects a page in different ways?