fix redirection bug in ~/images/index.php