I want to use the skeleton of pset7 for my final project, however I can't get the index
to redirect to any other page. I get this phpinfo()
page, and when I try to put code in index.php
to redirect the user to another page, nothing happens.
I edited /etc/hosts
and added 127.0.0.1 app
for lack of a better name. When I put http://app
into chrome, I get the phpinfo()
page.
The browser always requests index.php
by default. This requires
../includes/config.php
, which defines redirect()
. I then call redirect("../public/foo.html")
, which should bring me to that page, but it doesn't. Any code I put in index.php
seems not to be running. Why is this?
How can I fix this?