phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Possible to redirect mxbb pages back to portal?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » mxBB Portal
::  
Author Message
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Possible to redirect mxbb pages back to portal?Posted: Thu Jun 29, 2006 5:22 pm    Post subject: Possible to redirect mxbb pages back to portal?

As you might know, if a person stumbles upon an old mxbb page that no longer exists, they will get a simple overall_header and footer of the portal and nothing more. is there a way to redirect traffic from these kinds of pages back to our portal?

Thanks

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Possible to redirect mxbb pages back to portal?Posted: Thu Jun 29, 2006 6:56 pm    Post subject: Re: Possible to redirect mxbb pages back to portal?

Nice idea Wink

Open (the mxBB one) :

Code:
index.php


Find :
Code:

$page_row = get_info(PAGE_TABLE, "page_id", $page_id);
$page_title .= $page_row['page_name'];


After add :

Code:
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( !isset($page_row['page_name']) )
{
   header("Status: 301 Moved Permanently", false, 301);
   header("Location:" . PORTAL_URL . "index.$phpEx");
   exit();
}
// www.phpBB-SEO.com SEO TOOLKIT END


This way, all pages that do not exist will be http 301 redirected to the mxBB portal's index.

But be careful with this, because if you change a page ID on purpose, then, you'll prefer to set up an additional exception to redirect the old ID to the new one.

This is perfect to use if you do not reuse ID or if you don't mind this much about older page's URL to be linked to new pages, which is actually the case without the mod rewrite as well Wink

++
Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Possible to redirect mxbb pages back to portal?Posted: Fri Jun 30, 2006 6:20 am    Post subject: Re: Possible to redirect mxbb pages back to portal?

Great Very Happy I had a feeling you would get a 301 in there some how. works like a charm.

dcz wrote:
But be careful with this, because if you change a page ID on purpose, then, you'll prefer to set up an additional exception to redirect the old ID to the new one.


How would I go about doing this? Cpanel is not very good with redirecting page ID numbers. it ignores ?page=12 . would this be something done in .htaccess?

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 13354

Possible to redirect mxbb pages back to portal?Posted: Fri Jun 30, 2006 8:41 am    Post subject: Re: Possible to redirect mxbb pages back to portal?

Nope, this deals with mxBB ACP, because you can manually change page IDs in it.
I just meant to warn you about his fact, because you can easily built up duplicates if you start messing with those Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Possible to redirect mxbb pages back to portal?Posted: Sat Jul 01, 2006 7:48 pm    Post subject: Re: Possible to redirect mxbb pages back to portal?

Oh I see what you mean.. and that wouldn't be good. heh' thanks. Smile

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » mxBB Portal
Page 1 of 1

Navigation Similar Topics

Jump to: