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

XF 1.3 Redirect old links

Discussion in 'Installation, Upgrade, and Import Support' started by hterrag, Jun 17, 2014.

  1. hterrag

    hterrag Active Member

  2. Amaury

    Amaury Well-Known Member

    @Jake Bunce is the expert on this. He'll be able to help you. :)
  3. hterrag

    hterrag Active Member

    Thanks, will wait for @Jake Bunce
  4. Mike

    Mike XenForo Developer Staff Member

  5. hterrag

    hterrag Active Member

    I tried that but cant get it to work. Still need help with this.
  6. Mike

    Mike XenForo Developer Staff Member

    If you're having problems with that add-on, I'd have to recommend posting in its thread and explaining the problems you're having.
    Amaury likes this.
  7. hterrag

    hterrag Active Member

    Do I need an add-on to redirect the links I stated above? Is it not just some lines to write in htaccess?
  8. Mike

    Mike XenForo Developer Staff Member

    You have standard vB4 style URLs so that add-on should work and would usually be the most straightforward way of handling this. .htaccess modifications are only significant with non-standard URLs (or ones that don't have redirect scripts).
    hterrag likes this.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I agree. Those redirect scripts should work.

    But if you want rewrite rules then add these rules to the top of the .htaccess file in your web root:

    RewriteEngine On
    RewriteCond %{QUERY_STRING} (^|\?)([0-9]+)-
    RewriteRule ^showthread\.php$ /forums/index.php?threads/%2/ [R=301,L]
    That should do it.
    Terry Love and hterrag like this.
  10. hterrag

    hterrag Active Member

    Thanks I will try and get this to work. I don't really know how to use it but I will post on that thread.

Share This Page