| :: |
| Author |
Message |
ambistia
Joined: 26 Aug 2008 Posts: 5
|
Posted: Tue Aug 26, 2008 8:00 am Post subject: Trouble with preMod phpbb SEO |
|
|
I've spent over 12 hours trying to figure this out and I'm now completely confused.
I installed correctly. I followed the instructions through the install and all worked well.
Next I made some small changes to the phpBB SEO area, again following your directions through the process.
I tested mod rewrite to find out if it was working correctly by using your little found.html > find.html idea. Worked perfect.
I had the whole thing running GREAT, with mod rewrites occurring and the whole forum was one big happy family.
THEN....
Then I went into the dreaded "forum url management" for the first time and decided I would shorten my url's a little. I changed only 1, just 1 of these urls in the forum url management and the whole thing went to hell.
Now, phpBB loads on the forum board index, but, when I click to any other url I get 404.
Any help is much appreciated. Thanks! |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
ambistia
Joined: 26 Aug 2008 Posts: 5
|
Posted: Fri Aug 29, 2008 10:29 am Post subject: Re: Trouble with preMod phpbb SEO |
|
|
# 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 - MIXED
#####################################################
# 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 ^talk/forum\.html$ /talk/index.php [QSA,L,NC]
# FORUM
RewriteRule ^talk/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /talk/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^talk/[a-z0-9_-]*-f([0-9]+)/topic([0-9]+)(-([0-9]+))?\.html$ /talk/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^talk/announces/topic([0-9]+)(-([0-9]+))?\.html$ /talk/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^talk/([a-z0-9_-]*)/?topic([0-9]+)(-([0-9]+))?\.html$ /talk/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^talk/member/([^/]+)/?$ /talk/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^talk/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /talk/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ADVANCED
RewriteRule ^talk/[a-z0-9_-]*-g([0-9]+)(-([0-9]+))?\.html$ /talk/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^talk/post([0-9]+)\.html$ /talk/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^talk/active-topics(-([0-9]+))?\.html$ /talk/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^talk/unanswered(-([0-9]+))?\.html$ /talk/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^talk/newposts(-([0-9]+))?\.html$ /talk/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^talk/the-team\.html$ /talk/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# FORUM WITHOUT ID & DELIM
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^talk/([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /talk/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
##################################################### |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
ambistia
Joined: 26 Aug 2008 Posts: 5
|
Posted: Tue Sep 02, 2008 12:32 am Post subject: Re: Trouble with preMod phpbb SEO |
|
|
I've done this and triple checked, it's correct as you've stated.
Is there any other things I can check or try to fix? When I set Active URL Rewriting in the phpBB SEO Class setting to "no" - it works perfect. Otherwise 404 on all pages except forum index. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
|
| Back to top |
|
 |
ambistia
Joined: 26 Aug 2008 Posts: 5
|
Posted: Mon Sep 08, 2008 9:40 am Post subject: keep this on topic please |
|
|
I've been trying changing things around without success. However I should point out one thing as you noted above:
This line of code works perfect:
RewriteRule ^find\.html$ talk/found.html [L] |
|
|
| Back to top |
|
 |
ambistia
Joined: 26 Aug 2008 Posts: 5
|
Posted: Sat Sep 13, 2008 1:17 am Post subject: bump for help? |
|
|
still need help, see above
thanks guys  |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15242
|
Posted: Sat Sep 13, 2008 4:49 pm Post subject: Re: keep this on topic please |
|
|
| ambistia wrote: |
This line of code works perfect:
RewriteRule ^find\.html$ talk/found.html [L] |
Then as said you just need to reproduce the same patern for slashes, eg :
| Quote: | RewriteRule ^talk/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /talk/viewforum.php?f=$1&start=$3 [QSA,L,NC]
|
becomes :
| Quote: | | RewriteRule ^talk/[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ talk/viewforum.php?f=$1&start=$3 [QSA,L,NC] |
and so on
Or you can just use the "more options" option of the .htaccess generator and then use the right slash option to generate the proper .htaccess for you.
++ |
_________________ 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 |
|
 |
|
|