double contents in mx-map.html

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators

double contents in mx-map.html

Postby macnack » Sun Jul 16, 2006 12:18 pm

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
PR1
PR1
 
Posts: 101
Joined: Tue Jun 20, 2006 7:01 am
Location: Germany

Advertisement

Postby dcz » Sun Jul 16, 2006 1:48 pm

Actually, I had left some commented code in includes/MxSitemaps.php to do so :

find
Code: Select all
         // 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: Select all
         // 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: Select all
RewriteRule ^$ /index.php [QSA,L,R=301]


before the forum's rewriterules ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest


 
cron