apache_conf retina.js bug 404

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf retina.js bug 404相关的知识,希望对你有一定的参考价值。

#QH MOD BEGIN
#This block of code needs to go above your Wordpress rules
<IfModule rewrite_module>
#This is to short circuit non existent Retina image requests generated by retina.js
# without this, the whole wordpress 404 stack will be executed which is very expensive
# We simply redirect the request to the non @2x version of the file, if one exists, otherwise, send a 404 status
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} @2x\.[a-z]+$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)@2x(.*)$ $1$2 [E=QHNORETINA:1]
RewriteCond %{ENV:QHNORETINA} 1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* - [L,R=404]
</IfModule>
#QH MOD END

以上是关于apache_conf retina.js bug 404的主要内容,如果未能解决你的问题,请参考以下文章

XMLHttpRequest 无法加载请求的资源上不存在“Access-Control-Allow-Origin”标头。 AWS S3,视网膜.JS

apache_conf Redireciones

apache_conf Seguridad .htaccess

apache_conf htaccess的

apache_conf 基本认证

apache_conf 配置地图