mumuriwang 發表於 2013-10-28 16:55
' h8 ~$ @, q! |' z$ [' ^& C站內302跳轉amazon 0 ~! {5 [; w4 l3 C
3 X2 r7 }3 [, O6 f$ `問:這個如何實現??是通過插件實現的,還是怎麼弄?
$ n3 ]- ~- t* Y( A! N) A5 Z# t用程序做302跳轉啊,這個很簡單吧,php代碼:
+ C& {& S6 I7 f# @& s3 hurl.php- <?php! C$ K$ A4 z6 L3 E" E V3 f
- $asins = $_GET["asins"];
! \' e1 M3 F" J( V0 _ - & b- u: r2 d: T: l/ z& y( G) h
- $tag = $_GET["tag"];
% g- J6 i% y3 ]8 n# X( A4 d - & ^9 l" P: @' t d* F
- $url = "http://www.amazon.com/dp/".$asins."/?tag=".$tag;
# G+ S& k+ P) r" B5 G; M% |
% Z7 \3 {& ] o$ C( e0 d6 E- Header("HTTP/1.1 302 Moved Permanently");+ O( J+ _" W4 t& `
- Header("Location: ".$url);
9 u: X" N2 U% W5 ~2 @- R% C }/ C - ?>
複製代碼 鏈接:url.php?asins=商品ID&tag=AMZ推廣ID
* w' g$ @/ q. A$ L' ?# f, n' `$ [! \- e* }& j3 B
|