As far as what I can tell, the really thing I need assistance is redirecting the old links to the new ones. Since I have kept the format relatively the same, the only difference really between the new and the old links is the "v". I don't currently use the virtual folders.
For example, an old link would be /discussion/example-topic-vt123.html, and the new one would be /discussion/example-topic-t123.html.
The same thing applies for example-forum-vf4.html is now example-forum-f4.html.
Here is my old .htaccess:
- Code: Select all
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^discussion/.+/([^/]+\.html)$ /discussion/index.php [R=301,L]
# CATEGORIES
RewriteRule ^discussion/.+-vc([0-9]+)\.html$ /discussion/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^discussion/.+-vf([0-9]+)-([0-9]+)\.html$ /discussion/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^discussion/.+-vf([0-9]+)\.html$ /discussion/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^discussion/.+-vt([0-9]+)-([0-9]+)\.html$ /discussion/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^discussion/.+-vt([0-9]+)\.html$ /discussion/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^discussion/post([0-9]+)\.html$ /discussion/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^discussion/member([0-9]+)\.html$ /discussion/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END phpbb PAGES
#####################################################
And here is my new one:
- Code: Select all
#####################################################
# 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 ^discussion/forum\.html$ /discussion/index.php [QSA,L,NC]
# FORUM
RewriteRule ^discussion/[a-z0-9_-]*-f([0-9]+)(-([0-9]+))?\.html$ /discussion/viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER
RewriteRule ^discussion/[a-z0-9_-]*-f([0-9]+)/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /discussion/viewtopic.php?f=$1&t=$2&start=$4 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER
RewriteRule ^discussion/announces/[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /discussion/viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM
RewriteRule ^discussion/([a-z0-9_-]*)/?[a-z0-9_-]*-t([0-9]+)(-([0-9]+))?\.html$ /discussion/viewtopic.php?forum_uri=$1&t=$2&start=$4 [QSA,L,NC]
# PROFILES SIMPLE
RewriteRule ^discussion/member([0-9]+)\.html$ /discussion/memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
# USER MESSAGES SIMPLE
RewriteRule ^discussion/member([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ /discussion/search.php?author_id=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS SIMPLE
RewriteRule ^discussion/group([0-9]+)(-([0-9]+))?\.html$ /discussion/memberlist.php?mode=group&g=$1&start=$3 [QSA,L,NC]
# POST
RewriteRule ^discussion/post([0-9]+)\.html$ /discussion/viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^discussion/active-topics(-([0-9]+))?\.html$ /discussion/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^discussion/unanswered(-([0-9]+))?\.html$ /discussion/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^discussion/newposts(-([0-9]+))?\.html$ /discussion/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^discussion/the-team\.html$ /discussion/memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
Thanks!

English |
French
