example.com/thumb/AWg7X9Ko5hA_default.png某些mod rewrited图像未加载。为什么?
例如,它的工作....
但
example.com/thumb/m0bt_9Qiznc_default.png
不是..为什么不呢?
当我访问
example.com/thumb/media.php?id=m0bt_9Qiznc &类型=默认
它的工作原理。
这是我使用htaccess的代码:
RewriteEngine on
RewriteBase/
RewriteRule ^thumb/([^_]*)_([^_]*)\.png$ /thumb/script.php?id=$1&type=$2 [L]
和的script.php:
$media_type = $_REQUEST['type'];
$the_id=$_REQUEST['id'];
if ($media_type=="big")
{
header('Content-type: image/png');
readfile("http://i4.ytimg.com/vi/$the_id/0.jpg");
}
elseif ($media_type=="default") {
header('Content-type: image/png');
readfile("http://i4.ytimg.com/vi/$the_id/default.jpg"); }
这是什么代码? – m3tsys 2011-04-08 17:47:46