<分区>
我正在使用 XAMPP,我在 htdocs 中有两个目录。基本上,我正在尝试执行以下操作:
localhost/folder-website1 中的一个按钮将我指向
localhost/folder-website2
如果有帮助的话,website2 是一个用作 API 的 Lumen 项目,我正在尝试查看是否能够连接到它。
编辑:
在 website1 中,我有一个执行以下操作的按钮:
function test(){
window.location.href = "localhost/website2/public";
}
据我所见,URL 变成了
http://localhost/website1/localhost/website2/public