Clean index.php from redirect URL
Added optional 301 header