| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
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

Joined: 28 Apr 2006 Posts: 13354
|
Posted: Thu Jun 29, 2006 6:56 pm Post subject: Re: Possible to redirect mxbb pages back to portal? |
|
|
Nice idea
Open (the mxBB one) :
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
++
 |
_________________ 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 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
Posted: Fri Jun 30, 2006 6:20 am Post subject: Re: Possible to redirect mxbb pages back to portal? |
|
|
Great 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

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 512 Location: Michigan
|
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.  |
_________________ Juarol.com
| Frekuenciadigital.com | |
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |