script ปั่นๆ


หน้าแรก SEO script ปั่นๆ
ลองเข้าไปหาความรู้หรือเทคนิคจากที่เวบนี้จ้าเทคนิคเพียบ

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 ฯลฯ  เพื่อนำไปใช้งานได้จิง

ตัวอย่าง ที่ 1

RewriteRule ^http://(.*).kateep.com/(.*)$ http://kateep.com/ $1/$2 [L]

ตัวอย่างที่ 2
RewriteEngine On
RewriteCond %{REQUEST_URI}!^/sd_
RewriteCond %{HTTP_HOST}!^www.example.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).example.com
RewriteRule (.*) /sd_%1/$1 [L]

ตัวอย่างที่ 3

# Rewrite subdomain requests to subdirectories except for www.example.com
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/sd_
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+).example.com
RewriteRule (.*) /sd_%1/$1 [L]
#
# Redirect direct user-agent requests for www.example.com/sd_<subdomain>/<page> to http://<subdomain>.example.com/<page>
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /sd_(.+) HTTP/
RewriteRule ^sd_([^/]+)/(.*)$ http://$1.example.com/$2 [R=301,L]


ขึ้นไปด้านบน