The default settings in MAMP result in the URL for your local site to be displayed as:
This can be changed by going to MAMP > Preferences > Ports > Apache Port, and changing it from 8888 to 80
Apache Port: 80
This results in the URL being displayed as:
And also allows you to access the homepage by simply typing in “localhost” into the address field.