problems with rewrite rules possible bug

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

Postby Darth Pincho » Tue Jan 30, 2007 12:09 am

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: Select all
} else {
         $this->url = $this->seo_static['index'];
      }
      return;


and this:

Code: Select all
// '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/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Advertisement

Postby Darth Pincho » Tue Jan 30, 2007 12:37 am

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/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Postby dcz » Tue Jan 30, 2007 12:56 pm

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 || 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 Darth Pincho » Tue Jan 30, 2007 6:59 pm

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/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Postby dcz » Tue Jan 30, 2007 7:58 pm

My current bet on this is here, not really a clue, but hopefully a final fix ;)

++
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 AK » Sun Feb 04, 2007 7:12 pm

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...
AK
 
Posts: 1
Joined: Sun Feb 04, 2007 6:57 pm
Location: The Netherlands - Eindhoven

Postby dcz » Mon Feb 05, 2007 12:18 am

And welcome :D

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 ;)

++
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 Darth Pincho » Mon Feb 05, 2007 3:10 am

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/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Postby dcz » Mon Feb 05, 2007 9:05 am

Just put :
Code: Select all
// 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: Select all
while ( $row = $db->sql_fetchrow($result) )
{
$board_config[$row['config_name']] = $row['config_value'];
}


in common.php.

;)
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 Darth Pincho » Mon Feb 05, 2007 1:30 pm

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/
Darth Pincho
PR1
PR1
 
Posts: 146
Joined: Fri Sep 22, 2006 8:37 pm

Previous

Return to phpBB2 Advanced mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests