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

XF 1.1 phpBB3 Redirection

Discussion in 'Installation, Upgrade, and Import Support' started by MattW, Mar 3, 2012.

  1. MattW

    MattW Well-Known Member

    I followed the information posted here to help get some of my old URL's working with XenForo.
    http://xenforo.com/community/threads/phpbb3-redirection.28094/

    I've been taking a closer look at the google crawl errors, and I noticed I've been getting a lot of 404s still, relating to links like below, where it's referencing the direct post ID

    Not found ‎(1,630)‎

    Code:
    http://www.z22se.co.uk/forum/viewtopic.php?f=3&p=1162054
    Code:
    http://www.z22se.co.uk/forum/viewtopic.php?p=78411
    I've been able to get around this with some more rules in my .htaccess file

    To fix viewtopic.php?f=3&p=1162054 types:
    Code:
    RewriteCond %{QUERY_STRING} f=(\d+)$ [NC]
    RewriteRule ^(viewforum\.php|viewtopic\.php)$ /forum/forums/%1? [L,R=301,NC]
    
    and to fix viewtopic.php?p=78411 types:
    Code:
    RewriteCond %{QUERY_STRING} (^|&)p=([0-9]+)(&|$) [NC]
    RewriteRule ^viewtopic\.php$ /forum/posts/%2? [L,R=301,NC]
    
    These now all work correctly ;)

    http://www.z22se.co.uk/forum/viewtopic.php?f=3&p=1162054
    http://www.z22se.co.uk/forum/viewtopic.php?p=33932
     
    Adam Howard and Jake Bunce like this.

Share This Page