- Code: Select all
##############################################################
## MOD Title: phpBB SEO Advanced mod Rewrite
## MOD Author: dcz <n/a> http://www.phpbb-seo.com/
## MOD Description: This mod makes static URLs for phpBB
## Please read the author notes BEFORE using this mod.
## Check http://forums.phpbb-fr.com/viewtopic_77214.html
## or http://www.webrankinfo.com/forums/viewtopic_31831.htm
## for the latest version or to get help with this MOD
##
## MOD Version: 0.0.1
##
## Installation Level: (Advanced)
## Installation Time: 5 Minutes
## Files To Edit: (6)
## .htaccess,
## index.php,
## viewforum.php,
## viewtopic.php,
## search.php,
## overall_footer.tpl
## Included Files: n/a
##############################################################
## Author Notes:
## Ce mod nécéssite l'installation préalable de Cyber Alien guest session mod (http://www.phpbbstyles.com/viewtopic.php?t=357).
##
##
##
## LICENSE:
##
##
##
## I have decided to license this under the RPL which states you can not
## remove my credits and if you make any modifications you have to resubmit the modifications
## to me for includion into this toolkit again. You can read the license for yourself for
## further info.
##
## Along with this I now require a link to use this mod.
##
##
##############################################################
## MOD History:
##
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
# NOTE : Placez ensuite votre .htaccess à la racine de votre hébèrgement.
# Si vous avez d'autres règles .htaccess, ajoutez les simplement dans celui ci (attention à l'ordre des règles!)
# Si vous ne le faites pas, il se peut que la redirection example.com => www.example.com ne marche pas dans les sous dossiers
# et idem pour la règle qui garanti que www.example.com/phpbb/fauxdossier/url.html soit redirigé vers www.example.com/phpbb/index.php
#
.htaccess
#
# phpBB is installed at the root level :
#-----[ ADD ]------------------------------------------
#
# According to the specific hoster you are using, you might have to get rid of the "/" at the beginning of the script.php filenames
# like viewforum.php.
# make sure to change example.com with you actual domain.
#
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#Make sure the www is present
RewriteCond %{HTTP_HOST} !^www.example\.com [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,R=301,L]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
########################
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^.+/([^/]+\.html)$ /index.php [R=301,L]
# CATEGORIES
RewriteRule ^.+-vc([0-9]+)\.html$ /index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^.+-vf([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^.+-vf([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^about([0-9]+)\.html$ /viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^membre([0-9]+)\.html$ /profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
#
# phpBB is installed at the root level :
#-----[ ADD ]------------------------------------------
#
# According to the specific hoster you are using, you might have to get rid of the "/" at the beginning of the script.php filenames
# like viewforum.php.
# make sure to change example.com with you actual domain.
#
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#Pour que example.com soit changé en www.example.com sur tout votre site
RewriteCond %{HTTP_HOST} !^www.example\.com [NC]
RewriteRule ^(.*) http://www.example.com/$1 [QSA,R=301,L]
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
########################
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^phpbb/.+/([^/]+\.html)$ /phpbb/index.php [R=301,L]
# CATEGORIES
RewriteRule ^phpbb/.+-vc([0-9]+)\.html$ /phpbb/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/.+-vf([0-9]+)-([0-9]+)\.html$ /phpbb/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/.+-vf([0-9]+)\.html$ /phpbb/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpbb/about([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpbb/about([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^phpbb/post([0-9]+)\.html$ /phpbb/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^phpbb/membre([0-9]+)\.html$ /phpbb/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
1.Please could you tell me the French instructions, I am sadly unable to translate.
2. I am unclear as to how the htaccess rules should be here!
If a the
was www.example.com/phpbb/
a. what should the rules be
b.
- Code: Select all
# According to the specific hoster you are using, you might have to get rid of the "/" at the beginning of the script.php filenames
From where?
3. I seem to be getting redirected back to index issues, is this related

English |
French


