Hunter的大杂烩

九月 29, 2010

Apache discuz 头像 rewrite 优化

类归于: 技术话题 — hunter @ 12:07 上午

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]

WordPress 所驱动