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  
 
   
Will Advanced mod Rewrite work with MX-BB Portal?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Wed Sep 12, 2007 6:34 pm    Post subject: Will Advanced mod Rewrite work with MX-BB Portal?

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?
Back to top
Peter77
phpBB SEO Team
phpBB SEO Team


Joined: 10 May 2006
Posts: 512
Location: Michigan

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Thu Sep 13, 2007 2:53 am    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

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:

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.

_________________
Juarol.com
| Frekuenciadigital.com |
Back to top
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Thu Sep 13, 2007 6:23 am    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

Quote:
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]
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Thu Sep 13, 2007 8:37 am    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

Code:
^[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 || 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
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Thu Sep 13, 2007 12:56 pm    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

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.
Back to top
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Thu Sep 13, 2007 2:13 pm    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

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?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Fri Sep 14, 2007 9:03 am    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

You could just add :

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

after :
Code:

   /**
   * 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 || 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
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Fri Aug 22, 2008 12:30 pm    Post subject: Google only indexing 22 of my 4000+ URLs now

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
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Sat Aug 23, 2008 9:23 am    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

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 || 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
daddyo



Joined: 12 Sep 2007
Posts: 47

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Mon Aug 25, 2008 9:19 pm    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

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.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

Will Advanced mod Rewrite work with MX-BB Portal?Posted: Wed Aug 27, 2008 2:27 pm    Post subject: Re: Will Advanced mod Rewrite work with MX-BB Portal?

Well if now your sitemaps are showing the proper links, without redirection, the amount of cached pages should increase 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 mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: