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

XF 1.5 Rewrite Rules for DBSEO to XenForo

Discussion in 'Installation, Upgrade, and Import Support' started by Snook, Jul 28, 2016.

  1. Snook

    Snook New Member

    Hello All,

    I was wondering if someone could please help us with the Rewrite Rules for XenForo to allow all our old VB links to work. They were using DBSEO, and the thread structure was like:

    Code:
    http://site.com/guides-reviews/guides-tutorials/14009-ford-audio-bluetooth-usb-firmware-update-november-2012-release-how-update.html#post76209
    
    http://site.com/general-discussions/general-chat/14723-ps4-controller-usb-keyboard-wii-u.html
    I understand there's not much I can do with the physical forum URL's as they do not contain Forum ID. As such I was going to setup manual redirects; but as the thread URL's match perfectly from the Import I was hoping I could at least pull them off.

    Thank you in advanced :)
     
  2. Mike

    Mike XenForo Developer Staff Member

    You can try:
    Code:
    RewriteEngine On
    
    RewriteRule /([0-9]+)-[^\./]+\.html$ /threads/$1/ [R=301,L]
     
    Alyen likes this.
  3. Snook

    Snook New Member

    Cheers Mike,

    I've tired that one and no luck. All the pages get redirected into XenForo which then presents:

    XenForo- Error
    The requested page could not be found.

    Bit lost on what to do :(
     
  4. Mike

    Mike XenForo Developer Staff Member

    What URL do you end up at? Did you maintain IDs?
     
  5. Snook

    Snook New Member

    Hello Mike :)

    I ended up at:

    Where's in XenForo it is:

    100% the ID's are maintained :)
    It looks like it just completely ignored it :( But in general the Re-write rules are working as the built in ones in XenForo are working. I've checked the Web Server and the new ones are 100% imported and loaded.

    [​IMG]

    Much appreciated
     
    Last edited: Jul 29, 2016
  6. Snook

    Snook New Member

    Ignore me, I found the Solution! :D

    It was the other rules which came in the XenForo default htaccess which was causing the issue, I put this one to the top of the order and the redirects started working :)
    Note for anyone else using IIS :)
     
    Mike likes this.

Share This Page