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  
 
   
Bug? URLs not rewritten when viewing user's posts
Goto page 1, 2  Next
 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 12:21 pm    Post subject: Bug? URLs not rewritten when viewing user's posts

I have advanced seo mod for PHPBB3 perfectly installed and configured for my forum, but a forum user pointed me to the fact that when querying a registered user's posts, URLs in the main table are not rewritten.

Example (for admin user): http://www.unicp.de/forum/search.php?author_id=2&sr=posts

It gives out URLs of the form postXXX.html#44
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 12:26 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

Hi,

I think you didn't upgrade your .htaccess Wink


Mathieu.

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 12:47 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

Hi,

but the htaccess is just about the mod rewrite itself, i.e., it attributes the modified seo urls to the true phpbb script files.

I would expect the php code of the search.php file to output the correctly modified "seo-friendly" link that is used everywhere else to avoid duplicate content.
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 1:19 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

Can you please post here your .htaccess ? Wink


Mathieu.

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 3:10 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

this is the htaccess from the forum sub directory
Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /forum/
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^messages([0-9]+)(-([0-9]+))?\.html$ search.php?author_id=$1&sr=posts&start=$3 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^group([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 4:59 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

Try with this .htaccess :

Code:
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>

# You may need to un-comment the following line
# Options +FollowSymlinks
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /forum/
# HERE IS A GOOD PLACE TO ADD THE WWW PREFIXE REDIRECTION

#####################################################
# PHPBB SEO REWRITE RULES - ADVANCED
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. 'forum' REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^[a-z0-9_-]*/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^member([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



Mathieu Wink

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 6:19 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

what did you change exactly? i can't see any differences at first sight.

and is it an installation bug or not?
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 6:29 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

You didn't upgrade this part :

Code:
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]


which was introduced with phpBB 3.0.1 Wink
It's not a bug, upload the .htaccess i gave you, it should work fine.


Mathieu.

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 10:00 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

i overwrote the htaccess by the file u gave me but it didnt change anything.

you can check this with the link above to my forum.

maybe something else must be changed?
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Thu May 22, 2008 10:48 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

So, have you activate the virtual folders profil ?
If not Arrow ACP Arrow phpBB SEO Arrow phpBB SEO Class Settings Arrow Virtual folder Profiles (choose Yes).


Mathieu Wink

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Fri May 23, 2008 8:09 am    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

i just checked that:

virtual folders are already on
Back to top
MathieuM.
phpBB SEO Team
phpBB SEO Team


Joined: 10 Feb 2008
Posts: 597
Location: Rhône-Alpes

Bug? URLs not rewritten when viewing user's postsPosted: Fri May 23, 2008 8:36 am    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

And what about the Virtual folder Profils ? Wink
Did you upload the .htaccess on your /forum folder ?


Mathieu.

_________________
[ Site phpBB SEO ] [ Téléchargements ] [ L'annuaire SEO ] [ Venez vous présenter ] [ Fonction Recherche ]
---------------------------
[ phpBB SEO Site ] [ Downloads ] [ SEO Directory ] [ Introduce yourself ] [ Search function ]
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3482

Bug? URLs not rewritten when viewing user's postsPosted: Fri May 23, 2008 2:45 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

Steve06 wrote:

It gives out URLs of the form postXXX.html#44


These links are actually url rewriten, would be viewtopic.php.p=xx if not.

When searching for post, you see post urls, when searching for topics, you see topic urls, there is no efficient solution to transform post url to topic urls in search pages, since it would most likely require a SQL per post.
http://phpbb3.phpbb-seo.net/member/SeO/posts/ VS http://phpbb3.phpbb-seo.net/member/SeO/topics/
It's not an SEO issue as long as you install the advised robots.txt, the zero duplicate mod can as well redirect these links in case some where already spidered and cached.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Fri May 23, 2008 3:29 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

MathieuM. wrote:
And what about the Virtual folder Profils ? Wink
Did you upload the .htaccess on your /forum folder ?


Mathieu.


1. Under SEO Class Settings, in the ACP, I find only Virtual Folder, not Virtual Folder Profiles. The option you mention doesn't exist there.

2. Yes, I uploaded the file to the forum folder again (otherwise I would have overwritten the htaccess of my main site).
Back to top
Steve06



Joined: 18 Mar 2008
Posts: 21

Bug? URLs not rewritten when viewing user's postsPosted: Fri May 23, 2008 3:37 pm    Post subject: Re: Bug? URLs not rewritten when viewing user's posts

SeO wrote:
Steve06 wrote:

It gives out URLs of the form postXXX.html#44


These links are actually url rewriten, would be viewtopic.php.p=xx if not.

When searching for post, you see post urls, when searching for topics, you see topic urls, there is no efficient solution to transform post url to topic urls in search pages, since it would most likely require a SQL per post.
http://phpbb3.phpbb-seo.net/member/SeO/posts/ VS http://phpbb3.phpbb-seo.net/member/SeO/topics/
It's not an SEO issue as long as you install the advised robots.txt, the zero duplicate mod can as well redirect these links in case some where already spidered and cached.


I checked my robots.txt and it includes the line
Code:
Disallow: /forum/post

so in fact it won't create duplicate content. I have also zero duplicate installed, and in the ACP, it has an option concerning the posts:

Quote:
Posts Redirections:
This option will determine how to handle post urls; it can take four values :

* off, do not redirect post url, whatever the case,
* post, only make sure postxx.html is used for a post url,
* 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, redirect if required to the corresponding topic url.


Please Note

Keeping the postxx.html URLs is harmless SEO wise as long as you keep the disallow on post urls in your robots.txt.
Redirecting them all will most likely produce the most redirections among all.
If you redirect postxx.html in all cases, 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.


What I learn from it, is that if you really want to, you can force the all post links to be redirected, but that would create hundreds or thousands of redirections and be very inefficient.

So I think I will keep it as it is.

I just have a conceptual question: Isn't it possible to use URLs consisting of the topic and a #xy at the end for the post number? (e.g. http://www.unicp.de/forum/vervollstaendigung-f17/mehr-infos-zu-studentenleben-erbeten-t47.html#2)

Bye and thanks your support so far
Steve
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 2 Goto page 1, 2  Next

Navigation Similar Topics

Jump to: