为什么 PhpStorm 不使用 htaccess 文件?

问题描述 投票:0回答:1

我有一个用于页面重定向的

.htaccess
文件。它在wampserver中工作正常,但在PhpStorm中,它不起作用并且phpstorm不使用
.htaccess

例如,这适用于 wampserver:

localhost/Example/Page

这在 phpstorm 中不起作用:

localhost:63342/Example/Page

// 404 Not Found 

对于这个问题有什么想法吗?

.htaccess phpstorm wamp
1个回答
1
投票

.htaccess 由 Apache Web 服务器使用。但 PHPStorm Web 浏览器不使用它。如果您希望能够在那里使用它,您需要设置“项目根目录的 Web 路径”并将其指向适当的位置,如 Apache 虚拟主机中设置的那样。

© www.soinside.com 2019 - 2024. All rights reserved.