I'm in the process of migrating one of my vB 3.8 forums to Xenforo. I will be importing all the data into a clean install, so the thread and post IDs will remain the same. I need some help with mod rewrite rule(s) that would cover the following: Old: www.domain.com/forums/f23/thread-title-1255/ New: www.domain.com/threads/thread-title.1255/ Old: www.domain.com/forums/f23/thread-title-1255/index2.html New: www.domain.com/threads/thread-title.1255/page-2 Old: www.domain.com/forums/f23/thread-title-1255/index2.html#post60948 New: www.domain.com/threads/thread-title.1255/post-60948 Code (markup): /forums/f#/ should become /threads/ (f# could be f23, f18, etc.) -threadid should become .threadid Ideally, index#.html becomes page-# when there is no post id, but if this is too complicated, I can live with simply ignoring index#.html and redirecting to the first page. #postid should become /post-id Any help would be greatly appreciated.
A partial solution to the first one could be this, however there must be a better way since every occurance of f# would need to be listed: Rewrite 301 /forums/f18 /threads Rewrite 301 /forums/f23 /threads The rest of what you want should be easy enough, except it is above my pay grade so I have no clue how to do it. If nothing else, this might nudge you off square one.
Thanks folks. I got a response to my question on the Xenforo forums and there is a solution available via the forum's ACP. No need to mess with rewrite rules via .htaccess after all. Cheers.
The solution is to use Route Filters via the Xenforo Admin Control Panel. It sort of mimics the .htaccess functionality, but the processing is handled by the software.