1
正在关注How to re-write timthumb.php image url? 我能够在我的nginx web服务器中创建重定向。内部服务器url redirecion
但是,我想保留原始网址。
所以,如果访问者获得的网址http://mydomain.com/thumb/120/120/image.jpg它不会将浏览器重定向到http://mydomain.com/timthumb.php/?s=image.jpg&h=120&w=120,而是图像将显示在相同的链接下。
这种(服务器内部)重定向可能吗? 谢谢...
,使其工作,我已经改变我的nginx的conf文件: 位置〜*^/拇指/([0-9] +)/([0-9] +)/(。 *)$ { rewrite ^/thumb /(\ d +)/(\ d +)/(。*)$ /timthumb.php?src=http://$host/$3&zc=1&w=$1&h=$2 last; } Anwyay ...非常感谢你的提示!它节省了我的一天......;) –