อันนี้ทำเป็น file > index.php นะ
แก้ตรงง $myshop = "
http://astore.amazon.com/cheap-garmin-nuvi-255w-20 
"; // แก้ตรงนี้ที่เดียว ถ้าอยากทำ .uk ก็เปลี่ยน Domain เอาวน file นี้มี 3 ที่
<?php
$myshop = "http://astore.amazon.com/cheap-garmin-nuvi-255w-20";
function getTheShop($myshop) {
$url = $_SERVER['QUERY_STRING'];
$url = explode("linkurl=index.php&linkurl=",$url);
if (strpos($url[1],"&") == true) {
$url[1] = strrchr($url[1],"/");
if (strpos($url[1],"?") == true) { $url[1] = strrchr($url[1],"?"); }
else $url[1] = strchr($url[1],"&"); $url[1] = substr_replace($url[1],"?",0,1);
$shopid = explode("/",$myshop);
$url[1] = $shopid[3].$url[1]; }
else { }
if ($url[1]=="") {
$var['content'] = file_get_contents($myshop);
$var['extra'] = ' <# YOUR UNIQUE CONTENT (HTML or PLAINTEXT) #> '; }
else
$var['content'] = file_get_contents("http://astore.amazon.com/".$url[1]);
return $var;
}
function getMetaTitle($content){
$pattern = "|<[\s]*title[\s]*>([^<]+)<[\s]*/[\s]*title[\s]*>|Ui";
if(preg_match($pattern, $content, $match))
return $match[1];
else
return false;
}
$content = getTheShop($myshop);
$extra = $content['extra'];
$content = preg_replace("/\/\d{3}\-\d{7}\-\d{7}/", "", $content['content']);
// $content = $content['content'];
$tabletext = explode('alt="',$content);
for($i = 0; $i < count($tabletext); $i++) { $tabletext[$i] = substr($tabletext[$i], 0, strpos($tabletext[$i], '"')); }
$title = getMetaTitle($content);
$title = explode(" - ",$title);
$content = explode("</title>",$content);
unset($content[0]);
$content = implode("</title>",$content);
$content = str_replace('action="', ' action="http://astore.amazon.com', $content);
$content = str_replace('</title>', '', $content);
$content = str_replace('<title>', '', $content);
$content = str_replace('</body>', '', $content);
$content = str_replace('</html>', '', $content);
$content = str_replace('<body>', '', $content);
$content = str_replace('<html>', '', $content);
$tiler = substr (strrchr ($content, '<body>'), 0);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo "Buy ".$title[1]." in our Shop. ".$title[0]." - ".$title[1] ?></title>
<meta name="description" content="<?php echo "You search ".$title[0]."? Look around, we provide ".$title[0]." - ".$title[1] ?>" />
<meta name="keywords" content="<?php echo $title[1].", ".$title[0].", "; for($i = 8; $i < 18; $i++) { echo trim($tabletext[$i]).", "; } ?>" />
<meta name="robots" content="index,follow" />
<meta name="revisit-after" content="1" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo trim($content);
echo '<br style="clear:both;" />';
echo $extra;
echo '<br style="clear:both;" />';
?>
</body>
</html>
เสร็จแล้ว มาสร้าง file .htaccess โดยเปิด Notepad มา แล้ว Copy ไปวางได้เลย แล้ว save เลือก file type เป็น *.* ตั้งชื่อ .htaccess แค่นั้นพอ
แล้ว Upload ขึ้นไป...
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !\.html$
RewriteRule ^(.*)$ index.php?linkurl=$1 [qsappend,L]
จบข่าว ได้เว็บ aStore ... ถ้าอยากโม title , keyword , description ก็นัดเข้าไปได้เลย หรือใครอยาก ยัด Content เข้าไปเองก็ได้ ... จาก aStore ที่ทำไร ไม่ได้เลย เราก็จะได้ aStore ที่ไม่เหมือนใครๆ อิอิ ...
** ตอนนี้กำลังทดสอบ ปั่น aStore จาก subdomain อยู่... มันช่างง่ายจริงๆ ถ้าได้ผลดี จะเอามาแจก ครับ ถ้าไม่ได้ผล เอามาแจก ก็อายเขา น่อ ....
ปล. ไปเจอมาเลย เอามาฝาก .... หวังว่าคงชอบกัน .....
Demo : oeshi.net