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

301 redirects

Discussion in 'XenForo Questions and Support' started by wii, Oct 11, 2010.

  1. wii

    wii Active Member

    My forum has been converted from PunBB to vBulletin to XenForo, but is there anyway to get my old links to redirect correctly into XenForo, and old link is for example:

    www.mydomain.com/viewtopic.php?id=92

    How can I redirect these topics?

    Thanks
     
  2. wii

    wii Active Member

    Maybe something like this, but it doesn't work?

    RewriteRule ^viewtopic.php?id=([0-9][0-9])$ /viewtopic.php?id=$1/ [R]
    RewriteRule ^threads/([0-9][0-9])/$ /threads=$1

    Or

    redirect 301 /viewtopic.php?id= /threads/
     
  3. yoghurtfarmer

    yoghurtfarmer Well-Known Member

    The topic IDs will be different so I don't think it would work without a more involved approach.
     
  4. wii

    wii Active Member

    The threads I've looked at so far have the same ID.
     
  5. yoghurtfarmer

    yoghurtfarmer Well-Known Member

    Oh, then I don't know why the RewriteRule doesn't work (they are new to me). I had trouble with them too.

    What happens when you go to the old link? Do you get a 404?
     
  6. wii

    wii Active Member

    Strange, I just checked some more links, some of them have the same ID, other don't.

    Is it the conversion from punbb to vbulletin that did this, or the conversion from vbulletin to xenforo?
     
  7. yoghurtfarmer

    yoghurtfarmer Well-Known Member

    The IDs aren't the same because of deleted threads.

    Both importers will reset the IDs.
     
  8. yoghurtfarmer

    yoghurtfarmer Well-Known Member

Share This Page