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

XF 1.4 Redirect thread page problem

Discussion in 'Installation, Upgrade, and Import Support' started by Eagle, Nov 15, 2014.

  1. Eagle

    Eagle Well-Known Member

    Hi there,

    This redirect works good
    Code:
    RewriteRule .+-([\d]+).html showthread.php?t=$1 [NC,L]
    But...

    This redirect doesn't work..
    Code:
    RewriteRule .+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
    In fact, when click old vBSEO link at Google, it works well but redirect to show thread only first page...

    I can't understand why do not redirect thread-title-id/indexID.html to threads.ID/page-ID links?

    Thanks.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Are you saying that the first redirect triggers for the second? It doesn't look like it should trigger, but you should generally put your page-specific redirects above your page-1 redirect.

    Please also confirm that you have enabled converting page links in the redirect 301config.php itself.
     
  3. Eagle

    Eagle Well-Known Member

    Code:
    RewriteRule .+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
    RewriteRule .+-([\d]+).html showthread.php?t=$1 [NC,L]
    
    Both rewrite works well however there is a problem. After &page=$2 or .+-([\d]+)/index([\d]+).html doesn't work. Click old vBSEO links (if there is more message 1,2,3,4,5 page) trigger to 1. page.

    E.g.

    vBSEO old thread link;
    http://www.site.com/thread-title-90.html <-- it's ok.

    vBSEO old thread link (with pages 1,2,3 etc.) ;
    http://www.site.com/thread-title-90/index41.html

    Now new link XenForo SEO;
    http://www.site.com/threads/thread-title.90/page-41

    Right? I think yeah. Now click on Google old vBSEO links;
    http://www.site.com/thread-title-90/index41.html

    Works well but... Trigger to 1. page, (first page).

    My question is why page-41 doesn't open and redirect to first page?
     
  4. Mike

    Mike XenForo Developer Staff Member

    Did you enable page link support in 301config.php?
     
    Eagle likes this.
  5. Eagle

    Eagle Well-Known Member

    Code:
    define('INCLUDE_PAGE_LINKS', true);
    Now problem solved. I really forgot it after redirect urls with archived import log. Thank you for your reminder Mike.

    Regards,
     

Share This Page