【发布时间】:2015-10-16 06:53:07
【问题描述】:
我刚开始(大约 1 个月)开始使用 LAMP 和 Bootstrap。
在我重新安装 LAMP 之前,我开发了一个运行良好的网站。
这是我的进度:
0. reinstalled LAMP
1. moved my "backup-ed" file to my "localhost" direction
2. I run "chmod 777 *" to each dir and file
3. When I write "localhost" to my browser(firefox) the "index.html" is running
4. When I click the link(say: <a href="index.html">index</a>)
浏览器响应:
http://localhost/undefined
Not Found
The requested URL /undefined was not found on this server.
Apache/2.4.7 (Ubuntu) Server at localhost Port 80
有什么办法可以解决这个问题,当我编写 file:///var/www/html/index.html 时它可以完美地工作(链接)。
我之所以要使用 LAMP 是为了添加 .php 文件来处理表单。
谢谢
【问题讨论】: