phpbb 2.0.23 SEO

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

phpbb 2.0.23 SEO

Postby Xhd » Mon Feb 09, 2009 1:50 pm

hello ... sorry for the little English but are correct Italian however I have installed the advanced version of the mod for phpbb 2.0.23 that only after having turned the pages. php. html NOT FOUND tells me, as if the page did not exist ....
may depend on what?
Xhd
 
Posts: 6
Joined: Sat Feb 07, 2009 1:40 pm

Advertisement

Postby dcz » Mon Feb 09, 2009 2:12 pm

Have you implemented your .htaccess where the red message tells you to in the .htaccess generator ?
Does your server allow mod_rewrite ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Xhd » Mon Feb 09, 2009 7:06 pm

where to find the htaccess generator?
Xhd
 
Posts: 6
Joined: Sat Feb 07, 2009 1:40 pm

Postby dcz » Tue Feb 10, 2009 4:49 pm

Oh sorry, I'm so used to talk about phpBB3 these past times :lol:

So, there is no .htaccess generator in the phpBB2 SEO URL mods. But you'll find sample meant to be run in the domain's root with phpBB installed (or not) in a sub dir in the zip package.

Have you tried them ?

Usually, it's only a matter or using the correct paths in the rewriterules.
Where is phpBB installed in the domain, what path from domain's root ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby Xhd » Tue Feb 10, 2009 8:47 pm

this is my .htaccess

Code: Select all
# You could need to un-comment the following line
# Options +FollowSymlinks
#RewriteEngine On
RewriteBase /

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


orion is name the folder forum...
Xhd
 
Posts: 6
Joined: Sat Feb 07, 2009 1:40 pm

Postby SeO » Thu Feb 12, 2009 1:17 pm

So, if I'm correct, you forum is installed in :
Code: Select all
www.example.com/orion/


If so, your .htaccess is almost correct and should be used above the orion/ dir, eg in :
Code: Select all
www.example.com/

And you should not keep any .htaccess in orion/ either.
The error in your .htaccess is in the beginning of each rewriterule :
# CATEGORIES
RewriteRule /orion/[a-z0-9_-]*-c([0-9]+)\.html$ /orion/index.php?c=$1 [QSA,L,NC]

should be :
# CATEGORIES
RewriteRule ^orion/[a-z0-9_-]*-c([0-9]+)\.html$ /orion/index.php?c=$1 [QSA,L,NC]

and so on.
If this is not enough, then, try without the right slash, eg :
# CATEGORIES
RewriteRule ^orion/[a-z0-9_-]*-c([0-9]+)\.html$ /orion/index.php?c=$1 [QSA,L,NC]

becomes :
Code: Select all
# CATEGORIES
RewriteRule ^orion/[a-z0-9_-]*-c([0-9]+)\.html$ orion/index.php?c=$1 [QSA,L,NC]


and so on.
If none of this works, make sure you can use mod_rewrite on your host, and eventually play with the left slash :
# CATEGORIES
RewriteRule ^orion/[a-z0-9_-]*-c([0-9]+)\.html$ /orion/index.php?c=$1 [QSA,L,NC]

becomes :
# CATEGORIES
RewriteRule ^/?orion/[a-z0-9_-]*-c([0-9]+)\.html$ /orion/index.php?c=$1 [QSA,L,NC]

And with combinations (right and left slah etc ..).

Note that you only need to edit and test one rewriterule to find out the proper slash pattern for all.
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest