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  
 
   
problems with rewrite rules possible bug
Goto page Previous  1, 2
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
Darth Pincho
PR1
PR1


Joined: 22 Sep 2006
Posts: 141

problems with rewrite rules possible bugPosted: Tue Jan 30, 2007 12:09 am    Post subject: Re: problems with rewrite rules possible bug

i do it. And no work.

Also i delete all again, start over again, used advanced mode instead mixed mode. and have the exact same issue... jajajajajaja i have bad energy today....

I really dont have a clue. Now at this time im:

1) using advanced mode rewrite
2) I have not installed cyber aliens guest session id remove mod YET


3) My phpbb_seo_class.php file content is:

Code:
} else {
         $this->url = $this->seo_static['index'];
      }
      return;


and this:

Code:
// 'phpbb/' in case it's installed in the phpbb/ folder.
define ('PHPBB_SCRIPT', $script_name);
//define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);
if (!defined('PHPBB_URL')) {
   define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);
}


If you are in the index of the forum, the links work great. But navigate to one page like faq, and try to go bak to the forum index... jejeje its impossible unless you write the url manually.

Of course im using .htacces for advanced mode in this case. I replace the old one (mixed) with the new one.

I really doubt this is a bug in the 2 versions of mod rewrite, this can be some problem at my host?

I really appreciate your help. Please check the files in my ftp folder.

_________________
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Back to top
Visit poster's website
Darth Pincho
PR1
PR1


Joined: 22 Sep 2006
Posts: 141

problems with rewrite rules possible bugPosted: Tue Jan 30, 2007 12:37 am    Post subject: Re: problems with rewrite rules possible bug

I solve it. FINALLY. I cant beleive it. jejejejeje

1) I aplly the 2 replaces you told me previously

2) I replace:
'index' => ''
with
'index' => 'index.html'
at phpbb_seo_class.php file

3) Remove # symbols from .htacces in the 2 comented lines at:
# FORUM INDEX (un-comment if used)
# RewriteRule ^phpbb/index\.html$ /phpbb/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^phpbb/.*/([^/]+\.html)$ /phpbb/index.php [R=301,L]

But check the code my friend. I think that the idea of remoove the index.html at home is good, but is not working.

Now i will test it a lot and proceed to install GYM, and Zerodupe.

I have 1 question: I have to install Cyber aliens mod if i install your zerodupe mod?

_________________
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problems with rewrite rules possible bugPosted: Tue Jan 30, 2007 12:56 pm    Post subject: Re: problems with rewrite rules possible bug

Yes you need to install cyber alien guest sessions mod in all cases.

And please, I know the bug you faced is not funny, but do you really think we'd have released anything with such a known issue ?

The method was tested on many different setups, dedicated and shared, php 4.x and php 5.x, so yes, we've missed this one, but this does not mean the mod is not working in most cases, and that we released a mod which is not working.
phpBB does not work under all php 5 setups, it does not mean it does not work.

And yes, we're going to update it to take care about this new issue.

++

_________________
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
Darth Pincho
PR1
PR1


Joined: 22 Sep 2006
Posts: 141

problems with rewrite rules possible bugPosted: Tue Jan 30, 2007 6:59 pm    Post subject: Re: problems with rewrite rules possible bug

Yes my firend i know. Develop software stable in all platforms can be a living hell. I really admire your dedication in this matter.

Im using:
php 4.4.3
mysql 4.1.21-standard

Thsi is the software installed in the server with the problems.

_________________
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problems with rewrite rules possible bugPosted: Tue Jan 30, 2007 7:58 pm    Post subject: Re: problems with rewrite rules possible bug

My current bet on this is here, not really a clue, but hopefully a final fix 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
AK



Joined: 04 Feb 2007
Posts: 1
Location: The Netherlands - Eindhoven

problems with rewrite rules possible bugPosted: Sun Feb 04, 2007 7:12 pm    Post subject: Re: problems with rewrite rules possible bug

Had the same problem yeasterday. After some bug hunting:

In common.php the mod says: insert:
// 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

In phpbb_seo_class.php there is the line:
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));

But $board_config doesn't exist at that moment, it is filled with data _after_ the include of phpbb_seo_class in common.php

So putting the first lines of code (with the include) at the end of common.php , thus after
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}
instead of the beginning fixed the problem perfect...
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problems with rewrite rules possible bugPosted: Mon Feb 05, 2007 12:18 am    Post subject: Re: problems with rewrite rules possible bug

And welcome Very Happy

And you're very right.

You've understood it all. And that was why I could not understand it with phpBB installs, because, there is a genuine bug with mxBB, dealing with the PHPBB_URL constant being declared more than once, as mxBB uses it as well, and I could not find out where would it come from with phpBB, because, the install was never meant to place the include where it ended up in the uploaded release. And worst, the mxBB we tested did include the phpbb_seo_class.php where it should in common.php.

That's how it is, the dumbest, the hardest to find ...

Anyway, we'll update to 0.2.2 tomorrow 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
Darth Pincho
PR1
PR1


Joined: 22 Sep 2006
Posts: 141

problems with rewrite rules possible bugPosted: Mon Feb 05, 2007 3:10 am    Post subject: Re: problems with rewrite rules possible bug

Im really hapy because you guys know how to solve it. But i really dont have idea of what you are talking about.. jejjeje

could someone please say to me detailed instructions of what lines i have to move to the end of the file?

There is another post of me 5 minutes ago with the same problem in another forum. So i can solve the 2 issues.

I wait for your response tomorrow.

_________________
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

problems with rewrite rules possible bugPosted: Mon Feb 05, 2007 9:05 am    Post subject: Re: problems with rewrite rules possible bug

Just put :
Code:
// 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

after :

Code:
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}


in common.php.

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
Darth Pincho
PR1
PR1


Joined: 22 Sep 2006
Posts: 141

problems with rewrite rules possible bugPosted: Mon Feb 05, 2007 1:30 pm    Post subject: Re: problems with rewrite rules possible bug

Yes, i do it and problem solved.

Finally someone could find the bug i think exist in this code. Because i follow install instructions carefully on 2 different boards (2 different server) and get the same error. So i supose there is a little bug somewhere.

thanks for your hard work. I think php-seo is one of the best mods website i can find.

By the way the GYM mod is simply impressive. I have some doubts on one options in the ACP i will use the supoort forum for that plugin.

Regards

_________________
Webmaster at:
http://www.tupincho.net
Discussion board at:
http://www.tupincho.net/foro/
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 2 of 2 Goto page Previous  1, 2

Navigation Similar Topics

Jump to: