XF 1.4 Redirect thread page problem

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.
 
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.
 
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?
 
Top Bottom