URL 在本地主机上找不到 WAMP
URL not found on localhost with WAMP
我一直在为本地主机使用 xampp,但最近我遇到了端口问题,并尝试 运行 使用 Wamp 服务器的本地主机。一切看起来都很好,但是当我输入 localhost/bluedrive/drive/public
时,浏览器显示 The requested URL /bluedrive/drive/public/auth/login was not found on this server.
我忘了说我正在使用 Laravel 5。当我使用 XAMPP 时,我没有遇到这样的问题。为什么会有一个带WAMP SERVER的?
在 WAMP 服务器中启用 mod_rewrite
。
The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly.
所以基本上它将请求发送到 Laravel 而不是查找具有这些名称的文件夹。
我一直在为本地主机使用 xampp,但最近我遇到了端口问题,并尝试 运行 使用 Wamp 服务器的本地主机。一切看起来都很好,但是当我输入 localhost/bluedrive/drive/public
时,浏览器显示 The requested URL /bluedrive/drive/public/auth/login was not found on this server.
我忘了说我正在使用 Laravel 5。当我使用 XAMPP 时,我没有遇到这样的问题。为什么会有一个带WAMP SERVER的?
在 WAMP 服务器中启用 mod_rewrite
。
The mod_rewrite module uses a rule-based rewriting engine, based on a PCRE regular-expression parser, to rewrite requested URLs on the fly.
所以基本上它将请求发送到 Laravel 而不是查找具有这些名称的文件夹。