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  
 
   
404 when clicking on a members name

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
LAzYbONEz



Joined: 09 Apr 2007
Posts: 7

404 when clicking on a members namePosted: Thu Apr 26, 2007 10:34 am    Post subject: 404 when clicking on a members name

Hi again,

I seem to be getting a 404 when trying to view profiles. Otherwise everything else seems to be working fine...

Code:
RewriteEngine On
RewriteBase /forums/

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


I have Simple Rewrite MOD and zerodupe MOD installed...

Any ideas where I could have gone wrong?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

404 when clicking on a members namePosted: Thu Apr 26, 2007 10:48 am    Post subject: Re: 404 when clicking on a members name

Is it still about the same test site ?

As a matter of fact : -http://www.piaggioforums.com/testforum/phpBB2/member.html is 404, but -http://www.piaggioforums.com/testforum/phpBB2/topic139.html isn't, which by the way is quite strange, as these two are pretty much similar.

The usual mistake here is people using the french install file (using membrexx.html) and the English .htaccess (using memberxx.html), but here it's not the case.

Anyway, in case we are still talking about the same test site, your RewriteBase is wrong, should be :

Code:
RewriteBase /testforum/phpBB2/


As well, you can try to replace :
Code:
#PROFILES
RewriteRule ^member([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [QSA,L]


with :

Code:
#PROFILES
RewriteRule ^/?member([0-9]+)\.html$ profile.php?mode=viewprofile&u=$1 [QSA,L]


it's sometime necessary, and should be the same for topicxx.html, but who knows ...

++

_________________
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
LAzYbONEz



Joined: 09 Apr 2007
Posts: 7

404 when clicking on a members namePosted: Thu Apr 26, 2007 11:09 am    Post subject: Re: 404 when clicking on a members name

Nope...I've gone live now. http://www.piaggioforums.com/forums

I changed what you said but still not quite working. If you click on a membername the address comes up as just member.html with no number. Before the change it would come with a number but gave a 404

Now I've changed back to the original htaccess and its doing the same thing! Clicking on a profile brings up just member.html

hmmm...
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

404 when clicking on a members namePosted: Thu Apr 26, 2007 11:22 am    Post subject: Re: 404 when clicking on a members name

Oh, I see now, it's the zero dupe to fail here, check the includes/usercp_viewprofile.php code change performed by the zero duplicate.

Could be an "after add" applied as a "before add" or something like that.

++

_________________
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
LAzYbONEz



Joined: 09 Apr 2007
Posts: 7

404 when clicking on a members namePosted: Thu Apr 26, 2007 11:52 am    Post subject: Re: 404 when clicking on a members name

Aaah...good spotting

Heres what I did:

Code:
if ( empty($HTTP_GET_VARS[POST_USERS_URL]) || $HTTP_GET_VARS[POST_USERS_URL] == ANONYMOUS )
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
$profiledata = get_userdata($HTTP_GET_VARS[POST_USERS_URL]);

if (!$profiledata)
{
   message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}


I only searched for
Code:
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
rather than the whole string and pasted the ADD data after the first instance and not the second as required. Working perfectly now.

Thanks alot for that! Laughing
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: