apache 重写

apache 重写URL


RewriteEngine On

RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^http://www.bage.cc.*$ [NC]

RewriteRule .*\.jpg$        http://www.bage.cc/images/close.gif
测试URL:http://www.bage.cc/images/web/banner02.jpg

referrer:http://www.www.cc

http://htaccess.madewithlove.be/ 的测试结果是正确的, 但是浏览的时候还是出现了源文件,请教问题



没开 AllowOverride 

<Directory "G:/wamp/www/bage">
    Options FollowSymLinks Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

你可能感兴趣的:(AllowOverride)