• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 htaccess redirect after importing an SMF board


Well-known member
Thanks to @Jake Bunce, I'm almost finished with the huge and nerve-wracking job of importing my old SMF forum to xenforo (Jake handled this with aplomb, I should note). The old forum resided in the root (public_html) directory. The new xenforo board resides in /forum.

Jake created an .htaccess file with this redirect in it in order to ensure that links to threads on the old board point correctly to the new board:

RewriteEngine On
RewriteRule ^index\.php/topic,([0-9]+)\.[0-9]+\.html$ /forum/showthread.php?t=$1 [R=301,L]
However, what this .htaccess doesn't do, and I need it to, is redirect users who go to http://poetrycircle.com or http://www.poetrycircle.com to http://poetrycircle.com/forum.

Could anyone tell me what I need to add to the htaccess file that jake wrote so that not only the old threads are correctly re-routed but also people going to the base url now go to poetrycircle.com/forum?

Thanks in advance.


Well-known member
Oh, and for anyone who is interested, this former SMF board is a poetry/creative writing site with some pretty important requirements that user-inserted spaces be preserved when posts are saved. Both @cclaerhout and @Jake Bunce figured out (almost) a solution to this issue so that *most* user-inserted spaces are preserved. If anyone is interested in this issue, contact me or the other two users mentioned.