Hunter的大杂烩 技术学习笔记

2010-09-29

Apache discuz 头像 rewrite 优化

Filed under: 技术话题 — hunter @ 12:07 am

apache 2.2下测试通过

 

RewriteCond /usr/local/bbs/%{REQUEST_FILENAME} !-f
RewriteRule /ucenter/data/avatar/(.+)_small.jpg$ /usr/local/bbs/ucenter/images/noavatar_small.gif [L]
RewriteCond /usr/local/bbs/%{REQUEST_FILENAME} !-f
RewriteRule /ucenter/data/avatar/(.+)_middle.jpg$ /usr/local/bbs/ucenter/images/noavatar_middle.gif [L]
RewriteCond /usr/local/bbs/%{REQUEST_FILENAME} !-f
RewriteRule /ucenter/data/avatar/(.+)_big.jpg$ /usr/local/bbs/ucenter/images/noavatar_big.gif [L]

Powered by WordPress