简体   繁体   中英

can not access index.html page through MAMP

I am studying fundamentals of PHP programming and during my first program I encountered some problems with MAMP.I created a "first" directoory with index.html file inside the htdoccs directory.But i can not access this file through MAMP localhost.What is the problem?

enter image description here

enter image description here

The first folder has an uppercase F, First have you tried renaming it to first or using First in the browser?

For MAMP, a web page starts from htdocs,

So instead of

http://localhost/MAMP/first/index.html

please visit

http://localhost/First/index.html

For windows environment, letter case may not be the problem, so First, first, FIRst are all "ok", but if you migrate the code to a unix/linux platform, letter case must matches. Hence as a good practice please make sure you use the letter case in links properly

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM