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]

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress