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

problems with rewrite rules possible bug

Postby Darth Pincho » Mon Jan 29, 2007 1:18 pm

Hi dcz. I install your mixed mode mod. On

http://www.genteca.com.ve/foro/

Everything works great but there is a little problem.

Go here:
http://www.genteca.com.ve/foro/topic1.html

and try to click where says: Índice del Foro Genteca.com.ve
Or in the big logo. Nothing happens.

All the links in the entire board that goes to the main index forum page does not work.

Another test:
http://www.genteca.com.ve/foro/search.php
click on: Índice del Foro Genteca.com.ve

Nothing happens.

Also when i am in the ACP and then i click on the forum index link nothing happens.

My .htacces is:

Code: Select all
RewriteEngine On
RewriteBase /

#########################################################
# foro SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.foro-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
RewriteRule ^foro/index\.html$ foro/index.php [QSA,L]
# FORUM PROTECTION RULE
RewriteRule ^foro/.*/([^/]+\.html)$ foro/index.php [R=301,L]
# CATEGORIES
RewriteRule ^foro/.*-c([0-9]+)\.html$ foro/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^foro/.*-f([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^foro/.*-f([0-9]+)\.html$ foro/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^foro/topic([0-9]+)-([0-9]+)\.html$ foro/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^foro/topic([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^foro/post([0-9]+)\.html$ foro/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^foro/member([0-9]+)\.html$ foro/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END foro PAGES
#####################################################

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
# AUTHOR : dcz http://www.foro-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^foro/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^foro/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^foro/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^foro/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^foro/sitemaps\.([xml|xml\.gz]+)$ foro/sitemap.php [L]
# Sitemap modules
RewriteRule ^foro/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ foro/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^foro/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ foro/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^foro/urllist\.([txt|txt\.gz]+)$ foro/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES #
#########################################################
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

Another test

Postby Darth Pincho » Mon Jan 29, 2007 1:19 pm

regarding to my last post. Please try to visit:
http://www.genteca.com.ve/foro/index.php

and now visit
http://www.genteca.com.ve/foro/index.html

The first link do nothing. and the second link works.

Any idea???
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 Jan 29, 2007 1:30 pm

Have you installed the zero dupe yet ?

Could be this for the index.php issue.

Then, for the image link, it's looking like the template you're using is changing the way the link is build.

It the code for the image link different from the one for the text link in your templates ?
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 Jan 29, 2007 1:47 pm

i apply zero dupe mod of yours too. I triple check it yesterday. Everything looks good installed.

The template is exactly subsilver wit colors changed. The logo is the phpbb logo changed. There is not link structure altered in the templates. Only originals.

Any idea?
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 Jan 29, 2007 1:55 pm

Well, the zero dupe is not working yet : -http://www.genteca.com.ve/foro/false-title-1-f1.html

So this is something to fix. And that's what happening in the index.php as well.

Now about the weird image link, this is really strange.

Are both overall_header.tpl and index_body.tpl using {U_INDEX} for the index link ?
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 dcz » Mon Jan 29, 2007 2:41 pm

I think I have found it.

Try replacing :

Code: Select all
         $this->url = PHPBB_URL . $this->seo_static['index'];


with :

Code: Select all
         $this->url = $this->seo_static['index'];


in phpbb_seo/phpbb_seo_class.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 Jan 29, 2007 7:28 pm

I try your update and not work. Here you have my overall header and topicbody.tl

overallheader:

Code: Select all
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>



Topicbody:
Code: Select all
<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
     -> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
  </tr>


something in the zerodupe is not working. Any idea while i check again the zerodupe installation???
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

Ok. I triple check and reinstall the zero dupe

Postby Darth Pincho » Mon Jan 29, 2007 8:11 pm

Ok. I triple check and reinstall the zero dupe and have the same problem.

Is not a rewrite rule problem, for sure. I can delte the .htacces file and i still have teh same problem. When i put the cursor over the index forum links the url in the lower part of my browser shows:

http://:/

Some function in the zerodupe plugin is not working propperly. I install mixed mode. Here the code i use:

[mod] I know the code, I wrote it ;) [/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 Darth Pincho » Mon Jan 29, 2007 8:19 pm

Serodupe is not the problem. I uninstall it completely and have the same issue. I will check mixed mod urls.
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 Darth Pincho » Mon Jan 29, 2007 8:38 pm

i ve found two little mistakes in the mixed mod version rewrite. Fisrt you say:

## Files To Edit: (9)
## .htaccess,
## index.php,
## posting.php,
## viewforum.php,
## viewtopic.php,
## search.php,
## includes/functions.php,
## includes/sessions.php,
## overall_footer.tpl
## Included Files: (2)
## phpbb_seo/phpbb_seo_class.php
## phpbb_seo/.htaccess

But also you edit common.php

And later you says:


includes/functions.php

#
#-----[ FIND ]------------------------------------------
#
#function make_jumpbox($action, $match_forum_id = 0)
#{
global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID;

#
#-----[ AFTER, ADD ]------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
// www.phpBB-SEO.com SEO TOOLKIT END

but the red symbols are not ok. My code have theese lines but without the # symbols.

I will continue debugging.

I check all the files and are ok, everything installed. I will reinstall mixed mod rewrite. In order to see wich is teh problem.
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 Darth Pincho » Mon Jan 29, 2007 9:33 pm

Ok now im completely sure that there is a bug on the code.

1) I delete all my forum files.
2) Download a new copy from phpbb.com
3) upload it.
4) change subsilver.ccs file for the old one, change logo images, change celpic3.jpg image.
5) Forum works great, no problem at all.
6) I do the installation procedure in the next code. I check it 2 times. And now i have the same problem wich i start this post.

All the links that goes to the forum index pages are linking to http://:/

Here you have my actual .htacces file

Code: Select all
RewriteEngine On
RewriteBase /

#########################################################
# foro SEO REWRITE RULES            #
#########################################################
# AUTHOR : DCZ http://www.foro-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
RewriteRule ^foro/index\.html$ foro/index.php [QSA,L]
# FORUM PROTECTION RULE
RewriteRule ^foro/.*/([^/]+\.html)$ foro/index.php [R=301,L]
# CATEGORIES
RewriteRule ^foro/.*-c([0-9]+)\.html$ foro/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^foro/.*-f([0-9]+)-([0-9]+)\.html$ foro/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^foro/.*-f([0-9]+)\.html$ foro/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^foro/topic([0-9]+)-([0-9]+)\.html$ foro/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^foro/topic([0-9]+)\.html$ foro/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^foro/post([0-9]+)\.html$ foro/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^foro/member([0-9]+)\.html$ foro/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END foro PAGES
#####################################################

#########################################################
# GYM SITEMAPS AND RSS REWRITE RULES         #
#########################################################
# AUTHOR : dcz http://www.foro-seo.com/
# STARTED : 2006/02/22
########################
# RSS main
RewriteRule ^foro/rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1&$2 [L]
# RSS forums
RewriteRule ^foro/forums-rss-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum&c&$1&$2 [L]
# RSS all
RewriteRule ^foro/([a-zA-Z0-9]+)-rss([0-9]*)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?$1=$2&$3&$4 [L]
# RSS forum topics
RewriteRule ^foro/.+-rf([0-9]+)-?(l|s)?-?(m)?\.([xml|xml\.gz]+)$ foro/rss.php?forum=$1&$2&$3 [L]
# SitemapIndex
RewriteRule ^foro/sitemaps\.([xml|xml\.gz]+)$ foro/sitemap.php [L]
# Sitemap modules
RewriteRule ^foro/([a-zA-Z0-9]+)-sitemap\.([xml|xml\.gz]+)$ foro/sitemap.php?$1 [L]
# Forum Sitemaps
RewriteRule ^foro/.+-gf([0-9]+)\.([xml|xml\.gz]+)$ foro/sitemap.php?forum=$1 [L]
# Yahoo! urllist.txt
RewriteRule ^foro/urllist\.([txt|txt\.gz]+)$ foro/urllist.php [L]
#########################################################
# END GYM SITEMAPS AND RSS REWRITE RULES      #
#########################################################


and here you have the file i use to instal mod rewrite mixed mode:

[mod] I know the code, I wrote it ;) [/mod]

I DO NOT INSTALL ANY OTHER MOD. ANY. ONLY YOUR CODE IN THE PREVIOUS LINES.

DCZ if you require ftp access to the server to debug the problem let me know i will give an account to you.
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 Jan 29, 2007 9:39 pm

Please do not bump like this, the edit function is here to allow you to share you further investigations.

And please do not post the mods install, there is absolutely no need to do it.

So make sure you've got the code change I mentionned, and additionnaly try to replace :

Code: Select all
define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);

with :


Code: Select all
if (!defined('PHPBB_URL')) {
   define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);
}


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 dcz » Mon Jan 29, 2007 9:45 pm

dcz wrote:I think I have found it.

Try replacing :

Code: Select all
         $this->url = PHPBB_URL . $this->seo_static['index'];


with :

Code: Select all
         $this->url = $this->seo_static['index'];


in phpbb_seo/phpbb_seo_class.php

++


I looked at it and guess what, it was it ;)

++
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 Jan 29, 2007 9:57 pm

dcz wrote:Please do not bump like this, the edit function is here to allow you to share you further investigations.

And please do not post the mods install, there is absolutely no need to do it.

So make sure you've got the code change I mentionned, and additionnaly try to replace :

Code: Select all
define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);

with :


Code: Select all
if (!defined('PHPBB_URL')) {
   define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);
}


in common.php.

++


this code does not exist in my entire common.php file
Code: Select all
define ('PHPBB_URL', ROOT_URL . PHPBB_SCRIPT);


I also search for "PHPBB_URL" string and do not exist in the common.php file.

dcz wrote:
dcz wrote:I think I have found it.

Try replacing :

Code: Select all
         $this->url = PHPBB_URL . $this->seo_static['index'];


with :

Code: Select all
         $this->url = $this->seo_static['index'];


in phpbb_seo/phpbb_seo_class.php

++


I looked at it and guess what, it was it ;)

++


ive already do it. And the only thing different is: now when you click to go to the index forum you are redirected to the same page where you are located. No matter if you try from profile.php, you will be redirected to the same profile.php

Try to go from this pages to the forum index. Clicking on: Índice del Foro Genteca.com.ve
http://www.genteca.com.ve/foro/test-forum-1-f1.html
http://www.genteca.com.ve/foro/faq.php
http://www.genteca.com.ve/foro/memberlist.php

Notice i do the change you told me at phpbb_seo/phpbb_seo_class.php
Last edited by Darth Pincho on Mon Jan 29, 2007 10:27 pm, edited 3 times in total.
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 Jan 29, 2007 11:46 pm

dcz wrote:
dcz wrote:I think I have found it.

Try replacing :

Code: Select all
         $this->url = PHPBB_URL . $this->seo_static['index'];


with :

Code: Select all
         $this->url = $this->seo_static['index'];


in phpbb_seo/phpbb_seo_class.php

++


I looked at it and guess what, it was it ;)

++


Again :lol:

Do not touch anything ;)
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

Next

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