Theme editor



thxf.org

How To Redirect IPS 4.x URLs to XenForo 2.x

thxf.org thxf.org is verified member.

Administrator
Staff member
Admin
Thread owner
ตัวอย่าง 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 แล้วหาโค๊ด
Code:
RewriteEngine On
แล้วเพิ่มโค๊ดต่อไปด้านล่าง
Code:
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 แล้วครับ

ที่มา
 


Similar threads

Redirection Script for phpBB 3.2/3.3+ (without SEO URLs) htaccess สคริปนี้ต้องเปิดใช้ระบบ friendly urls ในตัว Xenforo ด้วยครับ. ทำงานอย่างไร "/viewforum.php?f=X" รีไดเร็กเป็น "/forums/X/" และ...
Replies
0
Views
15K
Redirect rules for SMF 2.0. Option 1 - .htaccess There are a few things for .htaccess to work correctly: SMF 2.0 was using normal URLs, like " During the import to Xenforo, you choose to retain...
Replies
0
Views
2K
  • Article Article
Directadmin + XenForo 2.x + Nginx fastcgi_cache full page guest caching. เนื้อหานี้ต้นฉบับอยู่ที่ xenforo offical site ครับ แต่ทางผมนำมาดัดแปลงเพื่อให้ใช้งานกับ directadmin ได้ครับ...
Replies
0
Views
2K
  • Article Article
Today, we have taken a major step forward in the move to make XenForo 2 our primary, stable and supported platform. While we have run a XenForo 2 demo since November, the main community site has...
Replies
1
Views
2K


Back
Top Bottom