Avoid the "index.php" part in links and redirects