| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
macnack PR0

Joined: 20 Jun 2006 Posts: 97
|
Posted: Sun Jul 16, 2006 12:18 pm Post subject: double contents in mx-map.html |
|
|
Hello
On my mx-site and forum-site I edit links in menu and overall header to link only to my domain ( /index.php => / )
Because want to eleminate double contents.
But now I see in mx-map.html a link to Portalsite /index.php?page=1
Where can I edit this that it link to / like in overall header ? |
_________________ macnack |
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15131
|
Posted: Sun Jul 16, 2006 1:48 pm Post subject: Re: double contents in mx-map.html |
|
|
Actually, I had left some commented code in includes/MxSitemaps.php to do so :
find
| Code: | // Built mx urls
// Here you can add custom redirs
/*if (intval($mx_page['page_id']) == '1')
{
$mx_page_url = PORTAL_URL . 'index.' . $phpEx;
}
elseif (intval($mx_page['page_id']) == '2')
{
$mx_page_url = PHPBB_URL . 'index.' . $phpEx;
}
else
{*/
$mx_page_url = $root_url . 'index.' . $phpEx . '?page=' . $mx_page['page_id'];
//} |
Replace with:
| Code: | // Built mx urls
// Here you can add custom redirs
if (intval($mx_page['page_id']) == '1')
{
$mx_page_url = PORTAL_URL . 'index.' . $phpEx;
}
elseif (intval($mx_page['page_id']) == '2')
{
$mx_page_url = PHPBB_URL . 'index.' . $phpEx;
}
else
{
$mx_page_url = $root_url . 'index.' . $phpEx . '?page=' . $mx_page['page_id'];
} |
Where you can as well get rid of index.php.
Actually, I plan to release a mod to take care of this dupe.
Here, I finded more convenient to force index.php every where with a single rewriterule, but it seems it's not working on all servers, have to check to defined the best method.
To force index.php, you can try :
| Code: | | RewriteRule ^$ /index.php [QSA,L,R=301] |
before the forum's rewriterules
++ |
_________________ 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 |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |