| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
LAzYbONEz
Joined: 09 Apr 2007 Posts: 7
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
Posted: 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 |
|
 |
LAzYbONEz
Joined: 09 Apr 2007 Posts: 7
|
Posted: 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

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
LAzYbONEz
Joined: 09 Apr 2007 Posts: 7
|
Posted: 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!  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |