对于一个成熟的网站,我只需要生成一个缩略图,使用timthumb,将缩略图放在/ thumbs /中。
try_files $uri ^thumbs/(.*)$ /thumb.php?w=290&q=90&src=../full/%1 last;
我怎样才能解决这个问题?
工作Apache代码:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/thumbs/(.*)$ RewriteRule ^(.*)$ /thumb.php?h=90&q=90&src=../full/%1 [NS,L]
提前致谢 :)
我想你需要在try_files指令中将%1更改为$1 。