有朋友會問
rewriteengine on
rewritecond %{http_referer} !^$
rewritecond %{http_referer} !^http://(www)?api im/ *$ [nc]
rewriterule(gif|jpg)$ [r l]
注明
打開文件(在那裡? apache目錄的conf目錄裡面)
<directory />
options followsymlinks
allowoverride none
</directory>
改為<directory />
options followsymlinks
allowoverride all
</directory>
重起apache
From:http://tw.wingwit.com/Article/program/Java/gj/201404/30491.html