| |
|
| :: |
| Author |
Message |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Tue May 06, 2008 5:46 pm Post subject: Problem with unanswered, newposts and active topics |
|
|
Hi all,
i just installed advanced SEO URL and everything seemed fine till i decided to activate virtual folder and virtual roots.
Forums and topics are working correctly, but if i click on unanswered or newposts i get a message of URL not found because the virtual root doesn't work.
here's my .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 /
# 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 ^forum\.html$ /main/index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(pagina([0-9]+)\.html)?$ /main/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$ /main/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^annuncio/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /main/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$ /main/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/$ /main/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES ADVANCED
RewriteRule ^[a-z0-9_-]*-u([0-9]+)/(topics|posts)/?(pagina([0-9]+)\.html)?$ /main/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /main/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /main/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^topic-attivi(-([0-9]+))?\.html$ /main/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^topic-senza-risposta(-([0-9]+))?\.html$ /main/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^nuovi-post(-([0-9]+))?\.html$ /main/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^staff\.html$ /main/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_-]+)/?(pagina([0-9]+)\.html)?$ /main/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
If i try to add "main" to those three rewriterules the links work.
If i leave it as they are now, i get the error message because the link points to /main/nuovi-post.html.
Thanks |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Tue May 06, 2008 10:00 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Virtual root seems activated for this .htaccess, make sure you generate it after you are done with changing settings, you may have been tricked.
Try generating a new one now. |
_________________
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Wed May 07, 2008 6:49 am Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Tried again, and i deleted everything except .htaccess in cache folder, but i still get "The requested URL /main/nuovi-post.html was not found on this server.".
I will reinser "main" in those RewriteRules, in the meantime if you want you can have a look at my site by going to www.rpgitalia.net
Thanks anyway, it's not a great loss even if we cant fix it!
EDIT: it looks like even egosearch is not working, that is more annoying since i can't find a way to bypass that problem through editing .htaccess
Any hint? |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Thu May 08, 2008 10:39 am Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Everything seems to be working great know  |
_________________
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Thu May 08, 2008 12:34 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
| Err... actually it doesn't, since i had to manually add "main" to those 3 RewriteRules (if i don't, newposts, active posts and unanswered won't work), and still egosearch (for example -http://www.rpgitalia.net/main/utente/golgoth/topics/) is not working, unless you manually delete "main" from the URL (i.e. -http://www.rpgitalia.net/utente/golgoth/topics/) . |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Thu May 08, 2008 1:12 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Well, that's what the virtual root option is doing, it's simulating a root install when phpBB is installed in a sub folder.
The thing is all links in your forum do work now, and none is using the main/ dir.
Of course, if you add the path, url won't work, because they are not supposed to be used in such case.
So, if you forum previously was indexed with the main/ dir in the urls (which does not seem to be the case looking at Google's index), you'd need to implement extra rewriterules to allow the url to work and be redirected.
Another thing is you seem to redirect -www.rpgitalia.net to -www.rpgitalia.net/main/index.php, but this is not really what you want to do anymore, since you forum now looks like (bots cannot make the difference actually) installed in the root dir : http://www.rpgitalia.net/forum.html
You should then eventually redirect -www.rpgitalia.net to -www.rpgitalia.net/forum.html or use a custom index.html (or index.php) to make a general home page (like a portal).
As well, you should install / activate the zero duplicate, and set up post redirection to at least "guest" to prevent postxx.html indexing. Implementing the suggested robots.txt is as well advised, but wait a month or so after you activated the zero duplicate, since you already let Google index postxx.html urls  |
_________________
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Thu May 08, 2008 4:07 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
| SeO wrote: | | Well, that's what the virtual root option is doing, it's simulating a root install when phpBB is installed in a sub folder. |
That's ok.
| Quote: | | The thing is all links in your forum do work now, and none is using the main/ dir. |
Not all links: what i meant since the beginning is that if you try to login as user: test pwd: testtest you will see that "view your posts" (in the overall_header, that is translated into "i tuoi messaggi") doesn't work.
| Quote: | | Of course, if you add the path, url won't work, because they are not supposed to be used in such case. |
Not exactly: if you look at my site even without logging in, you will see that i had to add (through .htaccess) the path for "view unanswered posts" ("messaggi senza risposta") and active topics ("topic attivi"), otherwise they wouldn't work.
Basically, here's my problem: if i copy/past the .htaccess posted above, in my index i see a wrong URL for unanswered & CO., since they look like "www.rpgitalia.net/main/xxx" while they should be "www.rpgitalia.net/xxx".
I bypassed the problem by changing | Code: | | RewriteRule ^topic-attivi(-([0-9]+))?\.html$ /main/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC] | to | Code: | | RewriteRule ^main/topic-attivi(-([0-9]+))?\.html$ /main/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC] | and so on, so that "www.rpgitalia.net/main/xxx" now works, but i couldn't do anything for "View your posts" since there isn't a specific RewriteRule for it. Hope now it's more clear
| Quote: | Another thing is you seem to redirect -www.rpgitalia.net to -www.rpgitalia.net/main/index.php, but this is not really what you want to do anymore, since you forum now looks like (bots cannot make the difference actually) installed in the root dir : http://www.rpgitalia.net/forum.html
You should then eventually redirect -www.rpgitalia.net to -www.rpgitalia.net/forum.html or use a custom index.html (or index.php) to make a general home page (like a portal). |
Thanks for the advice, i forgot that redirect!
| Quote: |
As well, you should install / activate the zero duplicate, and set up post redirection to at least "guest" to prevent postxx.html indexing. Implementing the suggested robots.txt is as well advised, but wait a month or so after you activated the zero duplicate, since you already let Google index postxx.html urls  |
I will, thanks again for all your help! |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Thu May 08, 2008 4:27 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Ho sorry, missed that, and it is a genuine bug for the virtual root mode.
In phpbb_seo/phpbb_seo_class.php, replace :
with :
in both search_adv() and search_smpl() methods, 8 lines to change.
Should solve all your link problems  |
_________________
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Thu May 08, 2008 4:33 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Perfect, everything's fine now! Gonna install zero duplicate now, thanks for your support!
EDIT: installed zero duplicate, but i see no changes, even if i set the two new voices in the ACP on "on" and post redirections for "all" |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Thu May 08, 2008 8:33 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Uh ok, i misunderstood what it was for, then
Thanks! |
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Fri May 09, 2008 6:47 am Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
A couple more questions:
1) in your phpbb3 test site i see that, when you click on "View the latest post", the URL looks like "http://phpbb3.phpbb-seo.net/sub-forum/xxx.html#pxx" and not simply "http://phpbb3.phpbb-seo.net/postxxx.html". How did you do that?
2) in my site pm popup are not working, since the popup loads a "http://www.rpgitalia.net/ucp.php?i=pm&mode=popup" while it should show "http://www.rpgitalia.net/main/ucp.php?i=pm&mode=popup". Damn that main  |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 2383
|
Posted: Fri May 09, 2008 5:05 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
1) This time, it's the no duplicate mod
2) hum, we got another bug here.
Try adding :
after :
in simple_header.html |
_________________
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Fri May 09, 2008 6:17 pm Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Great, everything seems really perfect now.
Many many many thanks  |
|
|
| Back to top |
|
 |
golgoth
Joined: 06 May 2008 Posts: 9
|
Posted: Mon May 12, 2008 11:34 am Post subject: Re: Problem with unanswered, newposts and active topics |
|
|
Strange thing: everytime i search for "xxx rpg italia" where "xxx" is one of the games that has its own space in my forum (such as Oblivion or Gothic) i get this result:
RPG Italia - La risorsa italiana per i videogiocatori di ruolo
Gioca di ruolo nel forum di RPG Italia! In questa sezione troverete tutte le ... yyyyyyyyy ...
It is strange since that red description is part of the "Play by Forum" section, yet it appears in every search, while those yyyyyyyyyy are part of the description of the correct forum.
For example if i make a search for "oblivion rpg italia" i get:
RPG Italia - La risorsa italiana per i videogiocatori di ruolo (correct site name)
Gioca di ruolo nel forum di RPG Italia! In questa sezione troverete tutte le (wrong forum - Play by Forum - description) ... The Elder Scrolls IV: Oblivion Il quarto capitolo di una delle serie più (correct forum - Oblivion - description)...
Shouldn't it look like:
RPG Italia - La risorsa italiana per i videogiocatori di ruolo
The Elder Scrolls IV: Oblivion: Il quarto capitolo di una delle serie più famose del mondo RPG, targato Bethesda Softworks.
? |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|