เขียน .htaccess ให้ใช้ URL ภาษาไทยได้ ทำอย่างไรครับ วานผู้รู้ตอบที

เริ่มโดย xvlnw.com, 09 มกราคม 2010, 10:26:45

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

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

xvlnw.com

หาใน Google มาหลายเว็บละครับ ยังไม่ได้คำตอบที่เอาไปใช้ได้เลยครับ

ช่วยทีนะครบั


:wanwan031: :wanwan031: :wanwan031: :wanwan031: :wanwan031:
[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

DownsTream

วิธีของผมก็คือ ส่งเป็นตัวแปร GET อีกตัวนึงครับ

ลองโหลด demo ที่ผมทำไว้ไปศึกษาดูนะครับ


Demo-: easy url

GigBoT

มีไรให้ช่วยบอกได้นะครับ มน. ด้วยกัน ถ้าไม่เกินความสามารถนะ = = ^^  :wanwan020: หรือจะ add เมล์มาก็ได้นะครับ
[direct=https://pscclinic.com/breast-surgery/]ทำนม[/direct] - คลินิกเสริมหน้าอก PSC อันดับ 1 ของไทย
[direct=https://www.moveonmarketing.com/seo]รับทำ SEO สายขาว[/direct] |
[direct=https://www.cz.co.th/seo]รับทำ SEO[/direct]
[direct=https://www.nitithamclinic.com/laser-tattoo-removal-nitithamclinic/]ลบรอยสัก[/direct] - เลเซอร์ลบรอยสัก Pico Laser เห็นผลจริง มีรีวิวการันตี
[direct=https://www.ssdhosting.in.th/]WordPress Hosting[/direct] - โฮสติ้งคุณภาพ ที่ออกแบบมาเพื่อเว็บไซต์แบบ WordPress โดนเฉพาะ

xvlnw.com

ขอบคุณทุก ๆ ความช่วยเหลือนะครับ

ดีใจจัง อิอิ

+ and +
[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

GigBoT

อ้างถึงจาก: xvlnw.com ใน 10 มกราคม 2010, 14:36:34
ขอบคุณทุก ๆ ความช่วยเหลือนะครับ

ดีใจจัง อิอิ

+ and +

เมื่อคืนบอกได้คำเดียวยุงเยอะมาก 55+
[direct=https://pscclinic.com/breast-surgery/]ทำนม[/direct] - คลินิกเสริมหน้าอก PSC อันดับ 1 ของไทย
[direct=https://www.moveonmarketing.com/seo]รับทำ SEO สายขาว[/direct] |
[direct=https://www.cz.co.th/seo]รับทำ SEO[/direct]
[direct=https://www.nitithamclinic.com/laser-tattoo-removal-nitithamclinic/]ลบรอยสัก[/direct] - เลเซอร์ลบรอยสัก Pico Laser เห็นผลจริง มีรีวิวการันตี
[direct=https://www.ssdhosting.in.th/]WordPress Hosting[/direct] - โฮสติ้งคุณภาพ ที่ออกแบบมาเพื่อเว็บไซต์แบบ WordPress โดนเฉพาะ

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

BUNDESLIGA

ตอบตอนนี้ไม่รู้ช้าไปไหม

ก๊อบมาจาก .htaccess ของ Discuz! Forums

RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

มันใช้ภาษาไทยได้นะครับ เพราะมันไปกำหนดความยาวของตัวอักษรในไฟล์ tag.php อีกทีนึง

ฉนั้นถ้าเอาไปประยุกต์ใช้น่าจะประมาณนี้

RewriteRule ^content-(.+)\.html$ file.php?content=$1

หรือ

RewriteRule ^(.+).\html$ file.php?content=$1

แล้วก็ไปกำหนดความยาวในไฟล์ file.php อีกทีนึง (ลองแกะ wordpress หรือ engine ตัวอื่นดูครับ)

Twenty-One

# บริการโฮสติ้งขั้นเทพ 24/7 เปิดให้บริการ web hosting มาแล้ว 14 ปี ลูกค้ากว่า 40,000 ราย ให้ความไว้วางใจ
# [direct=https://www.hostneverdie.com]hosting[/direct] คุณภาพสูง ดูแลระบบโดย system engineer ประสบการณ์สูง
# [direct=https://www.hostneverdie.com]host[/direct] เร็ง แรง ไม่มีล่ม ติดตั้ง cms ฟรี
# [direct=https://www.hostneverdie.com/vps-server]vps[/direct] ราคาถูก 50GB 999 บาท

[direct=https://www.hostneverdie.com][/direct]

Jaideejung007™


ttuunn

เวลายาวๆมันจะerror เจออักขระ ก็เน่า น่าจะเขียนดักๆ พวกนี้ได้นะผมว่า
:wanwan044:
ก็ใช้อยู่ แบบพวกหมวดหมู่

game.xxx.com/cat/เกมส์ต่อสู้
พวกที่เอาชื่อกระทู้ ทำ url ลำบากหน่อย
[direct=http://www.click2studio.com/vip-truemoney/index.php][/direct]
[direct=http://www.thaiseoboard.com/index.php/topic,355732.0.html]ขายสคริปวีดีโอออนไลน์ ตัดบัตรเงินสด Auto ส่ง User Pass ไปยัง sms มือถือท่าน[/direct]
[direct=http://www.click2studio.com]รับทำเว็บรับทำสคริปวาไรตี้,ภาพยนตร์,เว็บบอร์ด,หาเพื่อน,อัลบัม,อื่นๆมากมาย  เว็บเป็นเอกลักษณ์ไม่จำเจ[/direct]


jakjung

เพิ่มบรรทัด

RewriteRule ^(.+).\html$ file.php?content=$1

เข้าไปได้เลยใช่ไหมครับ

:wanwan017:
ปล่อยนกหมื่นตัว ปล่อยปลาแสนตัว ก็ยังไม่ดีเท่าปล่อยวาง

brassthai

อ้างถึงจาก: Twenty-One ใน 12 มกราคม 2010, 07:07:54
ลองดูตามนี้ครับ ความจริงมันมีหลายวิธีอันนี้มันแค่วิธีหนึ่ง

http://support.hostneverdie.com/knowledgebase/9/-modrewrite--url-.html

:o ใช้ได้ๆ




อ้างถึงจาก: jakjung ใน 17 พฤศจิกายน 2011, 02:08:39
เพิ่มบรรทัด

RewriteRule ^(.+).\html$ file.php?content=$1

เข้าไปได้เลยใช่ไหมครับ

:wanwan017:


:o จริงเหรอ?? ต้องลองละ
คิดแล้วกลุ้ม