xF2 Redirection scripts - Redirection script for SMF 2.0 | NulledTeam UnderGround | The Best Scripts Site In The World
Resource icon

xF2 Redirection scripts Redirection script for SMF 2.0 2.2

No permission to download
Compatible XF Versions 2.x
2.0, 2.1
Script to help you redirect from SMF 2.0 to Xenforo 1.5 / 2.x

There are a few things for this script to work correctly:
  • SMF 2.0 was using normal URLs, like "https://www.domain.com/smf/index.php?board=5.0"
    So "Search engine friendly URLs" and other SEO/Pretty URL's where not enabled. You will need to change the script if you where using one of those.
  • "Use full friendly URLs" in Xenforo is enabled
  • During the import to Xenforo, you choose to retain ID's
  • Both forums are installed in separate directories (or domains)

Download this script and modify to your needs.
Put it in the original location of your old SMF forum, overwriting the original index.php file.

You will need to change these variables in the script:

You don't have permission to view the code content. Please Log in or register now. Log in or register now.

Note 1: If you installed Xenforo in a subdirectory, you can use something like $redir_url = 'https://www.yourdomain.com/subdir';

Note 2: Make sure you use the same value for the number of messages per page for both forums.
So, if SMF was setup for 10 messages per page, you should do the same for Xenforo (Setup > Options > Threads > Discussions per page) and modify $threads_count to 10. This way you can also redirect thread pages correctly!

Examples of the redirections this script handles:
First release
Last update
0.00 star(s) 0 ratings

More resources from Admin

Latest updates

  1. [2.2] Update

    Added XF friendly url's option. Index.php is now properly redirected to root.
  2. SMF .htaccess

    Added .htaccess redirect rules

AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock