请检查以下是我的htaccess代码
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com [NC,OR]
RewriteCond %{HTTP_REFERER} !^http(s)://(www\.)?outlook.live.com [NC,OR]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com.*$ [NC]
RewriteRule .*\.(wav|swf|jpg|jpeg|gif|png|bmp|js|css)$ - [F,NC,L]
上面的代码限制了通过网站访问文件时直接访问文件(wav | swf | jpg | jpeg | gif | png | bmp | js | css)的权限。
我有一个问题是,当我在电子邮件中包含图片时,由于我的htaccess限制,该图片无法显示在电子邮件中。我需要允许该邮件可以显示图像。邮件客户端包括(gmail,outlook,yahoo等)任何建议。