abiliocaetano (@abiliocaetano)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • abiliocaetano
    Participant

    @abiliocaetano

    I used cms2cms to migrate one of my forums.

    in addition to what everyone wrote, I would like to add something very important: keep the SEO juice.

    if you want to keep all your SERP positions in google you must 301 redirect every topic from your old phpbb forum to the new bbpress topics.

    to do this you just have to:

    Open/edit:

    /styles/prosilver/template/overall_header.html
    (or the template you are using)

    search for:

    // Send vars to template
    $template->assign_vars(array(
    ‘FORUM_ID’ => $forum_id,

    and just above this lines add this piece of code:

    ##################################
    $titleac = trim($topic_data[‘topic_title’]);
    $relativeurl = str_replace(‘ ‘,’-‘,$titleac);
    $relativeurl = strtolower($relativeurl);
    header(“HTTP/1.1 301 Moved Permanently”);
    header(“Location: http://www.YOURDOMAIN.com/forums/topic/”.$relativeurl.”/”);
    #####################################

    I have little more detail of the bbpress permalink, etc configurations in this article: http://abiliocaetano.com/seo-migrate-phpbb-to-bbpress/

    regards,


    abiliocaetano
    Participant

    @abiliocaetano

    Hi all,

    in addition to what everyone wrote, I would like to add something very important: keep the SEO juice.

    if you want to keep all your SERP positions in google you must 301 redirect every topic from your old phpbb forum to the new bbpress topics.

    to do this you just have to:

    Open/edit:
    /styles/prosilver/template/overall_header.html
    (or the template you are using)

    search for:

    // Send vars to template
    $template->assign_vars(array(
    ‘FORUM_ID’ => $forum_id,

    and just above this lines add this piece of code:

    ##################################
    $titleac = trim($topic_data[‘topic_title’]);
    $relativeurl = str_replace(‘ ‘,’-‘,$titulo);
    $relativeurl = strtolower($relativeurl);
    header(“HTTP/1.1 301 Moved Permanently”);
    header(“Location: http://www.YOURDOMAIN.com/forums/topic/”.$relativeurl.”/”);
    #####################################

    I have little more detail of the bbpress permalink, etc configurations in this article: http://abiliocaetano.com/seo-migrate-phpbb-to-bbpress/

    regards,

Viewing 2 replies - 1 through 2 (of 2 total)