| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
Posted: Fri Jun 22, 2007 11:21 pm Post subject: Can't get the zero dupe to work properly |
|
|
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. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
|
| Back to top |
|
 |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
|
| Back to top |
|
 |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
Posted: Sat Jun 23, 2007 9:54 am Post subject: Re: Can't get the zero dupe to work properly |
|
|
Hmm, i dont know what happened but it now seems to work perfectly  |
|
|
| Back to top |
|
 |
emielvenlo PR0


Joined: 21 Jan 2007 Posts: 79
|
Posted: Sat Jun 23, 2007 10:23 am Post subject: Re: Can't get the zero dupe to work properly |
|
|
| 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? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14131
|
Posted: Mon Jun 25, 2007 7:24 am Post subject: Re: Can't get the zero dupe to work properly |
|
|
I think that reading the mos description a bit more would help you out :
Mod rewrite phpBB3 SEO :
| Code: | ## 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: | 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 || 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 |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |