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  
 
   
double contents in mx-map.html

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
::  
Author Message
macnack
PR0
PR0


Joined: 20 Jun 2006
Posts: 97

double contents in mx-map.htmlPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15131

double contents in mx-map.htmlPosted: 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 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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB SEO TooLKit  » phpBB SEO MODS
Page 1 of 1

Navigation Similar Topics

Jump to: