กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see


iC@fe

วิธีการทํา Redirect IPS 4.x URLs to XenForo 2.x

iC@fe 

Administrator

สมาชิกทีมงาน
Admin
เข้าร่วม
21 พฤษภาคม 2009
ข้อความ
1,677
คะแนนปฏิกิริยา
238
คะแนน
63
ตัวอย่าง url ของ IPS4 : example.com/topic/12345-hello-world/
ตัวอย่าง url xenforo 2.x : example.com/threads/hello-world.12345/

for redirect all url of threads , user profile pages , forum urls , and any more url in ips

เปิดไฟล์ .htaccess แล้วหาโค๊ด
โค้ด:
RewriteEngine On
แล้วเพิ่มโค๊ดต่อไปด้านล่าง
โค้ด:
RewriteRule ^forum/(\d+)-(.+)/page-(\d+)$ /forums/$2.$1/page-$3? [R=301,NC,L]
RewriteRule ^forum/(\d+)-(.+)/$ /forums/$2.$1/? [R=301,NC,L]
RewriteRule ^topic/(\d+)-(.+)/page-(\d+)$ /threads/$2.$1/page-$3? [R=301,NC,L]
RewriteRule ^topic/(\d+)-(.+)/$ /threads/$2.$1/? [R=301,NC,L]
RewriteRule ^user/(\d+)-(.+)/$ /members/$2.$1/? [R=301,NC,L]

จะได้ url IPS 4.x Redirect To new xenforo 2.x แล้วครับ

ที่มา
 

กระทู้ที่คล้ายกัน

ตอบกลับ
0
จำนวนการดู
2พัน
  • บทความ บทความ
ตอบกลับ
1
จำนวนการดู
2พัน

กรุณาปิด โปรแกรมบล๊อกโฆษณา เพราะเราอยู่ได้ด้วยโฆษณาที่ท่านเห็น
Please close the adblock program. Because we can live with the ads you see
กลับ
ยอดนิยม