【发布时间】:2019-10-20 03:36:44
【问题描述】:
我有一个文件 index.php,它只有:
<a href="http://localhost:8888/test.php">Test</a>
我还有另一个文件 test.php,它只有:
<a href="http://localhost:8888/">home</a>
所以我的想法是,我可以在这两页之间来回移动。我通过输入加载它:
php -S localhost:8888 index.php
我可以得到索引页。但是当我单击“测试”链接时,它所做的只是重新加载 index.php。但在浏览器的网址栏中,却显示“http://localhost:8888/test.php”。
为什么不直接加载 test.php 页面?我觉得我正在服用疯狂的药丸!
【问题讨论】:
标签: php