Can't get the zero dupe to work properly

Zero duplicate support forum. Personalized HTTP 301 dynamic redirections for phpBB.

Moderator: Moderators

Can't get the zero dupe to work properly

Postby emielvenlo » Fri Jun 22, 2007 11:21 pm

I have installed the advanced modrewrite and zero dupe, but the zero dupe does not word properly.
When i go to a topic the zero dupe does exectly the oposite from what it is suposed to do. Watch when you follow the link:
http://www.forumopzetten.nl/phpbb-f9/phpbb-2-0-22-installatie-handleiding-t10.html
You see the link is completely rewritten, but the zero dupe converts it to en non rewritten url
And when i go to a post http://www.forumopzetten.nl/post17.html#p17 it does not convert at all.

I have done the mod twice from the begin to the end, but it keeps on doing the same.

Here are the 5 files that i have altered for the zero dupe: Zip with 5 altered files

I hope you can help.
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Advertisement

Postby dcz » Sat Jun 23, 2007 8:36 am

Well, the zero duplicate is working as expected, it's the mod rewrite not to be installed properly.

Looks like you forgot about the viewtopic.php code changes.

++
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 emielvenlo » Sat Jun 23, 2007 9:36 am

I forgot one thing in viewtopic from the advanced mod rewrite.
Now the http://www.forumopzetten.nl/phpbb-f9/phpbb-2-0-22-installatie-handleiding-t10.html keeps rewritten. So that problem is solved.

But the http://www.forumopzetten.nl/post17.html#p17 is still not rewritten, and i have doublechecked everything in viewtopic.
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Postby emielvenlo » Sat Jun 23, 2007 9:54 am

Hmm, i dont know what happened but it now seems to work perfectly :)
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Postby emielvenlo » Sat Jun 23, 2007 10:23 am

emielvenlo wrote:Hmm, i dont know what happened but it now seems to work perfectly :)


I dont know what happened but now it does not work anymore :S

It seems randomly to (not) work....

Edit:
Now i know.
Logged in it does not work and logged out it does work...

Is this how it is suposed to work?
User avatar
emielvenlo
PR0
PR0
 
Posts: 82
Joined: Sun Jan 21, 2007 10:01 am

Postby dcz » Mon Jun 25, 2007 7:24 am

I think that reading the mos description a bit more would help you out :

Mod rewrite phpBB3 SEO :
Code: Select all
## With this mod, phpBB URL will transformed this way :
##
##   viewforum.php?f=xx            =>   forum-title-fxx/
##
##   viewforum.php?f=xx&start=yy         =>   forum-title-fxx-yy/
##
##   viewtopic.php?f=xx&t=yy            =>   forum-title-fxx/topic-title-yy.html
##
##   viewtopic.php?f=xx&t=yy&start=zz      =>   forum-title-fxx/topic-title-yy-zz.html
##
##   viewtopic.php?p=xx               =>   postxx.html
##
##   profile.php?mode=viewprofile&u=xx    =>   memberxx.html
##
##   memberlist.php?mode=leaders      =>   the-team.html
##
##   Global announces will be treated in a separate virtual folder :
##
##   viewtopic.php?f=xx&t=yy            =>   announces/announces-title-yy.html
##
##   viewtopic.php?f=xx&t=yy&start=zz      =>   announces/announces-title-yy-zz.html


Zero dupe :

Code: Select all
2) Settings :
_____________

This mod runs two level of checking as well as several options.
In phpbb_seo/phpbb_seo_class.php you will find :

      $this->seo_opt['zero_dupe'] = array( 'on' => true, // Activate or not the redirections : true / false
         'strict' => false, // strict compare, == VS strpos() : true / false
         'post_redir' => 'off', // Redirect post urls if not valid ? : guest / all / post / off

=> The 'on' option ('on' => true,), if you set it to false ('on' => false,), no redirection will be performed.

=> The strict mod, on false by default, will select between two method to decide to redirect or not.

When set to true, the zero dupe will check if the requested URL exactly matches the one attended.
This makes sure no $_GET var can be added but the one used by phpBB, thus preventing any type of $_GET injection
in the index, viewforum and viewtopic scritps.

When set to false, the zero dupe will make sure the attended url is the fist part of the one requested.
This means the mod will accept added var as long as they come at the end of the requested url.
It's still making it harder to inject $_GET vars, but harder is not impossible.
You should not feal to much concerned about this, since phpBB3 is able to handle such attack by himself,
the interest is to make it easier to deal with mods that could interfere with the zero dupe.

=> The post redir option will determine how to handle post urls, it can take four values :

   - 'off' ('post_redir' => 'off'), do not redirect post url, whatever it is,
   - 'post' ('post_redir' => 'post'), only make sure postxx.html is used for a post url,
   - 'guest' ('post_redir' => 'guest'), redirect guests if required to the corresponding topic url rather than to the postxx.html,
   and only make sure postxx.html is used for logged users,
   - 'all' ('post_redir' => 'all'), redirect if required to the corresponding topic url.

Please note that keeping postxx.html URLs is harmless SEO wise as long as you keep the disallow on post urls in your robots.txt,
and that this is most likely the redirection that will occur the most among all if you select to redirect them instead.

If you redirect postxx.html ('post_redir' => 'all' or 'post_redir' => 'all'),
this as well mean that a message that would be posted in a thread and then moved in another one
will see it's url changing, which thanks to the zero duplicate mod is of no harm SEO wise,
but the previous link to the post won't link to it anymore in such case.

Then of course, better is better.


++
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 Zero duplicate

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Majestic-12 [Bot] and 3 guests