Xenforo 2.1 Redirect IPS 4.x URLs to XenForo 2.x

#1
ips url sample is: example.com/topic/12345-hello-world/
xenforo 2.x url sample is: example.com/threads/hello-world.12345/

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

open .htaccess file in xenforo root

find this:

Code:
RewriteEngine On
add this code below:
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]
Now! all url of old IPS 4.x Redirect To new xenforo 2.x
 

ENXF NET

Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P
Registered
#2
thanks you.!
 
Top