【发布时间】:2015-05-10 00:10:34
【问题描述】:
我的 PHP 项目中有一堆 mod_rewrite 规则。当我提交到 git PhpStorm 对我提交的内容运行代码分析时,这很棒,但它会产生一堆警告,因为链接指向重写的 URL,而不是实际的 PHP 文件,例如:
Warning:(103, 71) Cannot resolve file 'contact'
对于这样的链接:
<a href="/contact">get in touch</a>
有没有办法让 PhpStorm 解决我的 .htaccess 文件中的重写规则?如果做不到这一点,我该如何关闭此检查?我尝试取消选中 Preferences > Editor > Inspections > HTML > Anchor reference problems,但仍然收到警告。
【问题讨论】:
标签: .htaccess mod-rewrite phpstorm