ใครพอช่วยผมเขียน .htaccess ให้ผมได้มั่งครับ

เริ่มโดย pohchara, 30 มกราคม 2010, 18:47:36

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

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

pohchara

คือผมพยายามเขียนเองแล้วแต่มึน-*-a

http://www.aaa.com/bb.php?cc=xxxxxx
ให้กลายเป็น
http://www.aaa.com/ภาษาไทย/xxxxxx.html

ขอบคุณครับ
[direct=http://arduinoprojects.in.th/]Arduino Projects[/direct]
[direct=http://arduinoprojects.in.th/library-arduino/]วิธีติดตั้ง Library Arduino[/direct]

[direct=http://www.arduino7.com/]ขาย Arduino[/direct]
รับปรึกษา กรณีพิพาทเกี่ยวกับ Domain โดนลิขสิทธิ์  ปัญหากับ Hostgator ฟรี(ไม่มีผลประโยชน์แอบแฝง)!! ครับ ผมขอตอบแทนสังคมบ้าง
เผื่อใครหากระทู้ไม่เจอ(ข้อพิพาทลิขสิทธิ์โดเมนBOA) : http://www.thaiseoboard.com/index.php/topic,172932.0.html

monthonsite


pohchara

[direct=http://arduinoprojects.in.th/]Arduino Projects[/direct]
[direct=http://arduinoprojects.in.th/library-arduino/]วิธีติดตั้ง Library Arduino[/direct]

[direct=http://www.arduino7.com/]ขาย Arduino[/direct]
รับปรึกษา กรณีพิพาทเกี่ยวกับ Domain โดนลิขสิทธิ์  ปัญหากับ Hostgator ฟรี(ไม่มีผลประโยชน์แอบแฝง)!! ครับ ผมขอตอบแทนสังคมบ้าง
เผื่อใครหากระทู้ไม่เจอ(ข้อพิพาทลิขสิทธิ์โดเมนBOA) : http://www.thaiseoboard.com/index.php/topic,172932.0.html

ninebookshop


naytumz

RewriteRule ^(.*)/([A-Za-z0-9]+).html$ bb.php?cc=$2 [L]

ลองดูครับ น่าจะได้(มั๊ง)  :wanwan019:
 *Link Removed*

pohchara

อ้างถึงจาก: naytumz ใน 30 มกราคม 2010, 19:21:35
RewriteRule ^(.*)/([A-Za-z0-9]+).html$ bb.php?cc=$2 [L]

ลองดูครับ น่าจะได้(มั๊ง)  :wanwan019:

T-T ไม่ได้เหมือนเดิมครับ
[direct=http://arduinoprojects.in.th/]Arduino Projects[/direct]
[direct=http://arduinoprojects.in.th/library-arduino/]วิธีติดตั้ง Library Arduino[/direct]

[direct=http://www.arduino7.com/]ขาย Arduino[/direct]
รับปรึกษา กรณีพิพาทเกี่ยวกับ Domain โดนลิขสิทธิ์  ปัญหากับ Hostgator ฟรี(ไม่มีผลประโยชน์แอบแฝง)!! ครับ ผมขอตอบแทนสังคมบ้าง
เผื่อใครหากระทู้ไม่เจอ(ข้อพิพาทลิขสิทธิ์โดเมนBOA) : http://www.thaiseoboard.com/index.php/topic,172932.0.html

woratana

/ภาษาไทย/ นี่คือคำว่า "ภาษาไทย" เลยหรือเปล่าครับ  :P
[direct=http://www.designil.com/contact-us]DesignIL เรียนเทคนิคเว็บดีไซน์ใหม่ ๆ ฟรี!! รับทำเว็บไซต์ เว็บดีไซน์ ธีม WordPress
[direct=http://www.designil.com/]DesigNIL: สอนออกแบบเว็บไซด์ Web Design HTML5 CSS3
[/direct]

ohmohm



xvlnw.com

[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

hermiss

ต้นฉบับ
อ้างถึงจาก: naytumz ใน 30 มกราคม 2010, 19:21:35
RewriteRule ^(.*)/([A-Za-z0-9]+).html$ bb.php?cc=$2 [L]

ลองดูครับ น่าจะได้(มั๊ง)  :wanwan019:

มั่วต่อเป็น
RewriteRule ^(.*)/([ก-๙A-Za-z0-9]+).html$ bb.php?cc=$2 [L]

เพราะผมเดาจาก A-Za-z0-9 น่าจะเป็นการกำหนดช่วงตัวอักษรเลยไปดู charecter map ปรากฎว่าภาษาไทย ก-๙ จะอยู่ต่อเนื่องกันครอบคลุมถึงสระทั้งหมดด้วย

kokarat


ohmohm

#12
อ้างถึงจาก: kokarat ใน 03 กุมภาพันธ์ 2010, 18:25:03
อ้าวพี่ ohmohm อยู่บอร์ดนี้ด้วย 555+
แม่นแล้ว http://www.thaiseoboard.com/index.php/topic,4238.msg499664.html#msg499664


นี้ไม่รู้เรื่องกันเลยนะนี้ 5555 -> http://www.thaiseoboard.com/index.php/topic,74428.0

kitazawa1st

RewriteRule ^ภาษาไทย/(.*)\.html$  bb.php?cc=$2

ไปกำหนดที่ link ด้วยนะครับ

<a href="ภาษาไทย/xxxxxx">xxxxxxx</a>

:wanwan023:
เล็กสั้น ขยันซอย