标签: .htaccess
我有这个.htaccess
RewriteRule ^.+$ / [R=301,L]
将所有请求发送回域的根目录以显示结束页面。
这很好但是css文件中的图像由于某种原因没有被加载。
如何允许加载图像?
答案 0 :(得分:1)
尝试以下规则:
RewriteRule !\.(gif|jpg|png|css)$ "destination page back to the root of the domain" [NC,L]
请做必要的更改。