1. 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 from old forum url to XF

Discussion in 'Installation, Upgrade, and Import Support' started by darren, Aug 1, 2013.

  1. darren

    darren Member

    Hi guys,

    I'm hoping someone can help.

    I'm a little concerned that some of my less tech savvy users of my site will have bookmarked the old direct url to my old VB install so i'm wondering how i can address that with a redirect.

    I have all the old vBSEO urls rewrote with help from here but I'm now concerned about the direct link to the forum so for example:

    vb direct url was /forum/forum.php

    my new xF install is in /community/

    how would i redirect that? thanks so much as i think this will be the last thing i will need before going live with my XF install :)
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Put this in the .htaccess file in the /forum directory:

    RewriteEngine On
    RewriteRule ^forum\.php$ /community/ [R=301,L]
    darren likes this.
  3. Silverhair

    Silverhair Member

    Hi, I have the newest XF installed and the new forum is great! There's just one problem...if I do a search of my old phpbb3 forum on google, the old forum index still comes up, whereas I would rather those links just redirect straight to my new forum.

    The XF is in a community folder much like the person describes above, and I haven't removed my old forum from my server yet, I simply turned it off for now.

    Do I need to remove that application entirely from my server, or do I redirect?

    I am a new to all this so go easy on me. I did put the code described by Jake above into the .htaccess file but the old forum still comes up in the google search , and clicking on that link still takes you directly to the old index that's been turned off.

    Solution? Thanks in advance!
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member


    What is the old and new index? I need before and after URLs. Then I can give you exact instructions.
  5. Silverhair

    Silverhair Member

    Thanks Jake, sorry for my delay in getting back, here they are...

    this is the url that comes up in the search: ... /forum/viewtopic.php?t=1&p=1

    the old index was at: .../forum/

    new one: ... /community/
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Amendment to previous rules:

    RewriteEngine On
    RewriteRule ^forum\.php$ /community/ [R=301,L]
    RewriteRule ^$ /community/ [R=301,L]

Share This Page