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 ...非常感謝你的提示!它節省了我的一天......;) –