วิธีสร้าง ปุ่ม URL ใต้กระทู้ที่เราสร้างขึ้น "ทำยังไงครับ" T_T
ตามกระทู้นี้ไปhttp://forum.discuzthai.com/thread-28901-1-2.html k2757 ตอบกลับเมื่อ 2012-11-27 16:21 static/image/common/back.gif
ตามกระทู้นี้ไป
http://forum.discuzthai.com/thread-28901-1-2.html
ไปยังไฟล์ .htaccess ที่อยู่หน้า Root แล้วเพิ่มโค๊ดต่อไปนี้
.htaccess ไฟล์นี้อยู่ไหนหาไม่เจอหรือสร้างนี้ใหม่ครับ ถ้าไม่มีก็สร้างใหม่เลยครับ
โค้ดทั้งหมดของไฟล์ .htaccess# RewriteEngine
RewriteEngine On
# Root directory of ur forum
RewriteBase /
# Rewrite
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-(+)\.html$ portal.php?mod=view&aid=$1&page={page}&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-(+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-(+)-(+)-(+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-(+)-(+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(+)-(.+)\.html$ $1.php?rewrite=$2&%1 k2757 ตอบกลับเมื่อ 2012-11-27 19:11 static/image/common/back.gif
ถ้าไม่มีก็สร้างใหม่เลยครับ
โค้ดทั้งหมดของไฟล์ .htacces ...
ต้อง บันทึกเป็นไฟล์ นามสกุลอะไรครับ ผมลอง HTM,PHP,CSM,TXT แล้วเอาไปไว้ที่ ไหนครับ bitsCAD ตอบกลับเมื่อ 2012-11-28 14:10 static/image/common/back.gif
ต้อง บันทึกเป็นไฟล์ นามสกุลอะไรครับ ผมลอง HTM,PHP,CSM,TXT แ ...
.htaccess เฉยๆครับไม่ใส่นามสกุล k2757 ตอบกลับเมื่อ 2012-11-28 16:22 static/image/common/back.gif
.htaccess เฉยๆครับไม่ใส่นามสกุล
มันเกินปัญหาแบบนี้ครับ ช่วนผมที่ครับท่าน http://www.bitscad.net/main/208 bitsCAD ตอบกลับเมื่อ 2012-11-29 09:48 static/image/common/back.gif
มันเกินปัญหาแบบนี้ครับ ช่วนผมที่ครับท่าน http://www.bitscad ...
http://www.bitscad.net/main/forum.php?mod=viewthread&tid=13&extra=page%3D1 ไม่จำเป็นต้อง .htaccessก็ได้เด้อ
โค้ดก็ง่าย วิธีก็ง๊ายย แสน ง่าย ใส่โค้ดแค่ไม่กี่ตัวก็ใช้ได้ละครับ -...-
หน้า:
[1]