Will Advanced mod Rewrite work with MX-BB Portal?

phpBB2 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting categories, forums and topic titles in their URLs.

Moderator: Moderators

Will Advanced mod Rewrite work with MX-BB Portal?

Postby daddyo » Wed Sep 12, 2007 6:34 pm

I have MX-BB Portal installed, and I noticed some of the edits in this mod require editing the index.php file.

Since my index.php file redirects to the MX-BB index file, my edits would be different, no?
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Advertisement

Postby Peter77 » Thu Sep 13, 2007 2:53 am

Hello and welcome to the site! What do you mean exactly that your forum's index.php is redirected to mxbb? are you using the mx_phpbb module? if so, there is a conflict issue not yet resolved with mx_phpbb module and the SEO mods.

Otherwise, the Advanced mod rewrite will work perfectly with mxbb.

just make sure to edit this in mxbb's common.php


Code: Select all
open common.php ( mxbb one )

--- FIND ---

//
// Define some general Defs
//
define('PHPBB_URL', $portal_config['portal_phpbb_url']);
define('PORTAL_URL', $portal_config['portal_url']);
define('PORTAL_VERSION', $portal_config['portal_version']);

--- AFTER ADD ---

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
include($phpbb_root_path . 'phpbb_seo/phpbb_seo_class.'.$phpEx);
$phpbb_seo = new phpbb_seo();
// www.phpBB-SEO.com SEO TOOLKIT END



That is really the only edits you may need to make with mxbb.
Peter77
phpBB SEO Team
phpBB SEO Team
 
Posts: 520
Joined: Wed May 10, 2006 9:46 am
Location: Michigan

Postby daddyo » Thu Sep 13, 2007 6:23 am

are you using the mx_phpbb module? if so, there is a conflict issue not yet resolved with mx_phpbb module and the SEO mods.


I guess so.

And I modified the phpBB/index.php file to redirect back to the mx/index.php file, so when the instructions say to modify the phpBB/index.php file, I'm not finding the correct line of code since mine is a smaller, abridged index file.

Thanks for the common.php fix for mx-bb portal. It is now working well.

What does this line in the .htaccess file do?

^[a-z0-9_-]+/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby dcz » Thu Sep 13, 2007 8:37 am

Code: Select all
^[a-z0-9_-]+/([^/]+\.html)$ /phpbb/index.php [R=301,L,NC]
is not mandatory, it's commented by default and is not required any more.
It was used to make sure no extra folder level would be used in phpBB.

About mx_phpbb module, I don't think it's this handy. It makes the forum heavier to load just to add a menu. I always keep phpBB independent like on this site.

It makes it easier to deal with mods as well.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby daddyo » Thu Sep 13, 2007 12:56 pm

I agree. It's VERY HEAVY on load times and costs me an extra second or two sometimes.

But I do like the modular style and the Last 20 Posts and didn't wanna wrap my own template around phpBB.
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby daddyo » Thu Sep 13, 2007 2:13 pm

I guess I lied a bit. One thing that isn't working as a result of this mod is my profile linking from my MX-BB Portal.

On my portal page, when I click a profile link, it want to go here:

-http://www.domain.com/mx/phpBB/member2.html

But I need it to go here:

-http://www.domain.com/phpBB/member2.html

So in my root level .htaccess file, I have this line:

RewriteRule ^mx\/phpBB\/member([0-9]*)\.html phpBB/profile.php?mode=viewprofile&u=$1 [QSA,L,NC]

It seems to work ok, but then messes up all other links on the profile page because they are all still based on the mx subdirectory. For example, my graphics don't load because they're looking for files inside the mx subdirectory:

-http://www.domain.com/mx/phpBB/templates/subSilver/images/lang_english/icon_pm.gif


How can I tell the redirect line in my .htaccess file to make sure all links in the phpBB/profile.php file are not still trying to access things from inside my mx directory?
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby dcz » Fri Sep 14, 2007 9:03 am

You could just add :

Code: Select all
         $this->path = $this->seo_path['phpbb_url'];

after :
Code: Select all
   /**
   * URL rewritting for profile.php
   * @access private
   */
   function profile() {
      if ( !empty($this->get_vars[POST_USERS_URL]) && $this->get_vars['mode'] === 'viewprofile') {


in phpbb_seo_class.php.

Should be enough to make sure all these are outputted with -http://www.domain.com/phpBB/ in the URL.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Google only indexing 22 of my 4000+ URLs now

Postby daddyo » Fri Aug 22, 2008 12:30 pm

After installing 301 redirect code in my .htaccess file for over a year now, I'm finding that Google is only indexing a small fraction of my total URLs now.

Can I get rid of the R=301 part now that I've been running this for over a year?

Here's the message I get from Google:

URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted.

HTTP Error: 301 (Moved permanently)

Total URLs in Sitemap 40003
Indexed URLs in Sitemap 22
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby dcz » Sat Aug 23, 2008 9:23 am

Well, there is no relation between the redirecting and the sitemaps, at least, there shouldn't be any.

Since the sitemaps should provide with non redirected urls, as Google tells you. The work is to be done in sitemaps to provide with the proper links IMO.

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby daddyo » Mon Aug 25, 2008 9:19 pm

I fixed my sitemap links and checked them with web-sniffer.net and everything is working correctly now.

Total URLs in Sitemap 40003
Indexed URLs in Sitemap 1315

But I'd still like to have more of my URLs indexed.
daddyo
 
Posts: 47
Joined: Wed Sep 12, 2007 6:05 pm

Postby dcz » Wed Aug 27, 2008 2:27 pm

Well if now your sitemaps are showing the proper links, without redirection, the amount of cached pages should increase ;)

++
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: 21219
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests