XF 1.5 Route Filter Issue

Mackintosh

Member
Hello, we are having an issue with Route Filter. Our goal is to convert the following links:

OLD LINK (IPS4)
http://forums.rpgmakerweb.com/index.php?/topic/35166-porcupine-princess/

NEW LINK (Xenforo)
http://forums.rpgmakerweb.com/index.php?threads/porcupine-princess.35166/

In Xenforo, we setup the filter like this

Find Route: /topic/{id:digit}-{title}
Replace With: threads/{title}.{id:digit}

The problem is that in Find Route, it's removing the slashing before the topic which causes the router to not work. How do we add it in?
 
Last edited:
The route filter is normally for XenForo URLs. For redirects you should use other means.

Add these rules to the top of the .htaccess file in the web root for forums.rpgmakerweb.com:

Code:
RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)/topic/([0-9]+)-
RewriteRule ^index\.php$ /index.php?threads/%2/ [R=301,L]
 
I have the same problem and the answer of Jake clarifies a lot, but I have a very limited knowledge of programming. We are changed from vBulletin to Xenforo and we want to redirect the following links:

vBulletin:
www.nationaalcomputerforum.nl/showthread.php?t=106095
to
Xenforo:
www.nationaalcomputerforum.nl/topics/106095-hotmailprobleem.html//

Is this the correct rewrite rule ?

RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)/showthread.php/([0-9]+)-
RewriteRule ^showthread\.php$ /topics/%2/ [R=301,L]
 
Top Bottom