Read more: http://www.webdesign.org/web-programming/php/auto-redirect.4759.html#ixzz1G8Aocsw4