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

XF 1.3 Dragonbyte SEO URL's to XF?

Discussion in 'Installation, Upgrade, and Import Support' started by Donny, Apr 10, 2014.

  1. Donny

    Donny Active Member

    Okay I think I might have ballsed up.

    I've got a VB forum that was running VBSEO, and I've ported over to DBSEO and the URL's have changed slightly (forum URL's now have ID's in them). The old URL's are 301ing fine. But I'm wanting to port the forum to XF like I've done with a few others, and I'm now wondering whether I can obtain URL structure and get 301's in place from DBSEO style to XF style URL's.

    Code:
    http://www.forum.co.uk/43-forum-name/72980-thread-name-title-here.html#post741033
    http://www.forum.co.uk/43-forum-name/ 
    
    ..for examples.
     
  2. Donny

    Donny Active Member

    Anybody?
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You didn't provide the new URL, but assuming the new thread URL is this:

    http://www.forum.co.uk/threads/thread-name-title-here.72980/

    ...then add these rules to the top of the .htaccess file in your web root:

    Code:
    RewriteEngine On
    
    RewriteRule ^[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
    
     

Share This Page