I have a bunch of mod_rewrite rules in my PHP project. When I commit to git PhpStorm runs a code analysis on what I'm committing, which is great, but it produces a bunch of warnings because links point to the rewritten URLs, not the actual PHP files, for example:
Warning:(103, 71) Cannot resolve file 'contact'
For a link like this:
<a href="/contact">get in touch</a>
Is there a way to make PhpStorm resolve the rewrite rules in my .htaccess file? Failing that, how do I turn this inspection off? I've tried unchecking Preferences > Editor > Inspections > HTML > Anchor reference problems but I'm still getting the warnings.