เปิดเผยเทคนิกสำหรับคนที่ชอบปั่นๆ พวก subdomain , Subdirectory, หรือ URL rewrite

เริ่มโดย ggynmsn, 06 สิงหาคม 2007, 03:53:55

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

ggynmsn

 :) :'(
ลองเข้าไปหาความรู้หรือเทคนิคจากที่เวบนี้จ้าเทคนิคเพียบ

http://www.modrewrite.com/
http://www.webmasterworld.com/apache/

------------------------------เปิดเผยเทคนิกสำหรับคนที่ชอบปั่นๆเทคนิค ปั่นๆๆๆๆ แชร์กันหน่อย--------------------------
เครื่องมือทำมาหากินของ script ปั่นๆ แบบเอื้ออาทร จะปั่นจาก RSS Feed จาก google api,yahoo api,msn api, amazon api,ebay api, ฯลฯ article directory, web directory

1. การปั่น Subdomain(wild card dns)
hxxp://www.yourdomain.com?keyword=xxxx   ====> xxxx.yourdomain.com
hxxp://www.yourdomain.com/xxxx ====> xxxx.yourdomain.com


2. การปั่น Subdirectory
hxxp://www.yourdomain.com?keyword=xxxx   ====> hxxp://www.yourdomain.com/xxxx
hxxp://xxxx.yourdomain.com  ======>  hxxp://www.yourdomain.com/xxxx

3. การปั่นแบบ Subdomain พร้อมกับ Subdirectory

4. การปั่นแบบรวมศูนย์ ไม่จำกัดโดเมน แก้ไขที่เดียว

ใครอยากจะแชร์ก็เชิญครับ
1. เกี่ยวกับการเขียนไฟล์  .htaccess
2. ตัวอย่างไฟล์ php,jsp,asp ฯลฯ  เพื่อนำไปใช้งานได้จิง


ColdMoney

[direct=https://www.jumnong.com]รับจำนอง[/direct] [direct=https://burapasup.com]รับซื้อบ้าน[/direct] [direct=https://kadsan.com]สินค้าราคาถูก[/direct] [direct=https://checkcheap.com]เปรียบเทียบราคา[/direct]

เดี๋ยวจะบอกว่าชื่ออะไร

[direct=http://www.thaiseoboard.com/index.php/topic,17065.0.html]เศรษฐีผู้รวยด้วยหนูตายหนึ่งตัว[/direct][direct=http://xn--82ca6ayaze0a4a4hsa2lj6l.blogspot.com/]บริการรีวิว เพิ่มคำวิจารณ์ 5 ดาวแฟนเพจ[/direct][direct=http://xn--12cbpr2dl9a3a2f5cd0a8me2dvco.blogspot.com/]ขายชิบ ไพ่เท็กซัส[/direct]
เกิดในที่...ที่ดี...นั้นดีแน่ 
เกิดในที่...ที่แย่...ก็ดีได้  
เกิดที่ดี...แล้วแย่...มีถมไป  
เกิดที่ไหน...ก็ดีได้ถ้าใฝ่ดี

awat

.NET Developer, Cloud computing Developer
รับทำ component joomla, wordpress, drupal

tinnoi

[direct=https://trainee.naruthee.com]หาที่ฝึกงาน[/direct] ,
[direct=http://www.piyamitrgroup.com]รับรื้อถอน[/direct] ,
[direct=https://fastvisa2024.weebly.com/]รับทำวีซ่า[/direct] ,
[direct=https://business.10thai.com]10thai[/direct]

janeos


<?php

$domain 
$_SERVER['HTTP_HOST'];
$domain_parts explode('.',$domain);

if (
count($domain_parts) == && $domain_parts[0]!= "www") {
include("subdir/index.php?kw=".$domain_parts[0]);
die();
}
?>



code สำหรับ host ที่ใช้ wildcard subdomain ครับ
เอาไว้ check ว่า url เรียกด้วย subdomain อะไร หลังจากนั้นจะให้ไปทำอะไรก็ว่าไปครับ

เอาไปแปะไว้บนสุดของ index.php ที่ web root ครับ
จะไปเรียกใช้ script gen ก็ต่อเมื่อเรียก subdomain เท่านั้น ส่วน www.domain.com หรือ domain.com ก็เข้าได้ปกติ (ในกรณีไม่ใช้ปั่น)

:)
[direct=http://www.siamseeker.com]ข่าว[/direct]  [direct=http://www.dunweb.net]ดันเว็บ[/direct] [direct=http://www.dunweb.net]โปรโมทเว็บ[/direct],