So I'm very new to programming and php. I installed MAMP (I'm on a mac), am using the default ports and wrote a short html document that I saved as index.php.
I saved it in a folder called "test" within the HTDOCS within the MAMP app.
I then go into my browser and type: localhost:8888/test/index.php, but keep getting a 404 error. What am I doing wrong? Thanks so much.
Try the following URLs without the port 8888
Is it working?
If not,here is a probable fix
Edit the /etc/hosts in your mac
then add these lines to the file for MAMP to work