So the french part I did not noticed in the install is just telling you to take a look at the www prefix duplicate and to put your .htaccess in root.
++
Moderator: Moderators

# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)-([0-9]+)\.html$ /index.php?f=$1&ppage=$2&start=$3 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /index.php?f=$1&ppage=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /index.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([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
HB. wrote:sorry forgot to ask
- Code: Select all
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)-([0-9]+)\.html$ /index.php?f=$1&ppage=$2&start=$3 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum([0-9]+)-([0-9]+)\.html$ /index.php?f=$1&ppage=$2 [QSA,L]
# FORUM
RewriteRule ^forum([0-9]+)\.html$ /index.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^topic([0-9]+)-([0-9]+)\.html$ /viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^topic([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
when adding these should I leave out the "#" sign?

#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# PAGINATED FORUM
RewriteRule ^phpbb/forum([0-9]+)-([0-9]+)-([0-9]+)\.html$ /phpbb/index.php?f=$1&ppage=$2&start=$3 [QSA,L]
# PAGINATED FORUM
RewriteRule ^phpbb/forum([0-9]+)-([0-9]+)\.html$ /phpbb/index.php?f=$1&ppage=$2 [QSA,L]
# FORUM
RewriteRule ^phpbb/forum([0-9]+)\.html$ /phpbb/index.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^phpbb/topic([0-9]+)-([0-9]+)\.html$ /phpbb/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^phpbb/topic([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]
######################################################
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
//
// Send vars to template
//
#
#-----[ AFTER, ADD ]------------------------------------------
# Dans cette partie, vous pouvez choisir de ne pas utiliser de highlight, ce qui, d'un point de vue du référencment est
# plus efficace, mais cela retire un peu du confort utilisateur.
# Pour ce faire, retirez simplement la variable $highlight_ok dans le prochain [ REPLACE WITH ] et n'appliquez pas celui-ci.
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$highlight_ok = ($highlight !='') ? "&highlight=$highlight" : '';
// www.phpBB-SEO.com SEO TOOLKIT END#
#-----[ FIND ]------------------------------------------
#
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
# Dans les modifications suivante, veuillez lire les commentaires. Ils concernent le mod mx Sitemaps
# ( http://boards.phpbb-seo.com/phpbb-seo-mods/mx-site-map-module-vt4.html ) et mxBB Portal.
# Décommentez ou supprimez les lignes de code requises celon votre utilisation.
#
function append_sid($url, $non_html_amp = false)
{
global $SID;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpEx;
$amp = ($non_html_amp) ? '&' : '&';
$find = array( $amp.'start=0',
$amp.'postdays=0',
$amp.'topicdays=0',
$amp.'postorder=asc',
$amp.'order=DESC',
$amp.'sort=lastpost',
);
$url = str_replace ($find, "", $url);
$urlin = array( "'(?)index.".$phpEx."\?f=([0-9]+)".$amp."ppage=([0-9]+)".$amp."start=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)".$amp."start=([0-9]+)".$amp."ppage=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)".$amp."ppage=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)(".$amp."){0,1}'",
"'(?)viewtopic.".$phpEx."\?t=([0-9]+)".$amp."start=([0-9]+)(".$amp."){0,1}'" ,
"'(?)viewtopic.".$phpEx."\?t=([0-9]+)(".$amp."){0,1}'",
"'(?)viewtopic.".$phpEx."\?p=([0-9]+)(".$amp."){0,1}'",
"'(?)profile.".$phpEx."\?mode\=viewprofile".$amp."u=([0-9]+)(".$amp."){0,1}'",
// mx Sitemaps Module (Paginated Forum URL)
//"'(?)forum-map([0-9]+)\.html".$amp."start=([0-9]+)(".$amp."){0,1}'",
// mx Sitemaps Module (mxBB map URL + pagination)
//"'(?)mx-map\.html".$amp."start=([0-9]+)(".$amp."){0,1}'"
);
$urlout = array( "forum\\1-\\2-\\3.html".if_query('\\4')."",
"forum\\1-\\3-\\2.html".if_query('\\4')."",
"forum\\1".if_first('\\2').".html".if_query('\\3')."",
"forum\\1.html".if_query('\\2')."",
"topic\\1-\\2.html".if_query('\\3')."",
"topic\\1.html".if_query('\\2')."",
"post\\1.html".if_query('\\2')."",
"membre\\1.html".if_query('\\2')."",
// mx Sitemaps Module (Paginated Forum URL)
//"forum-map\\1-\\2.html".if_query('\\3')."",
// mx Sitemaps Module (mxBB map URL + pagination)
//"mx-map-\\1.html".if_query('\\2').""
);
$url = preg_replace($urlin, $urlout, $url);
$url = str_replace ('?#', '#', $url);
$url = (substr($url, strlen($url) - 1, 1) == '?') ? substr($url, 0, strlen($url) - 1) : $url;
// www.phpBB-SEO.com SEO TOOLKIT END
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order"),
// www.phpBB-SEO.com SEO TOOLKIT END// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id'];
// www.phpBB-SEO.com SEO TOOLKIT END


//
// Append $SID to a url. Borrowed from phplib and modified. This is an
// extra routine utilised by the session code above and acts as a wrapper
// around every single URL and form action. If you replace the session
// code you must include this routine, even if it's empty.
//
function append_sid($url, $non_html_amp = false)
{
global $SID, $HTTP_SERVER_VARS;
if ( !empty($SID) && !preg_match('#sid=#', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}


#
#-----[ FIND ]------------------------------------------
#
function append_sid($url, $non_html_amp = false)
{
global $SID;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
# In the following code changes, please look at the comments, they concern the
# mx Sitemaps Module ( http://boards.phpbb-seo.com/phpbb-seo-mods/mx-site-map-module-vt4.html )
# and mxBB Portal. Just uncomment, to activate, or delete, if unused, the required lines of code upon your needs
#
function append_sid($url, $non_html_amp = false)
{
global $SID;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpEx;
$amp = ($non_html_amp) ? '&' : '&';
$find = array( $amp.'start=0',
$amp.'postdays=0',
$amp.'topicdays=0',
$amp.'postorder=asc',
$amp.'order=DESC',
$amp.'sort=lastpost',
);
$url = str_replace ($find, "", $url);
$urlin = array( "'(?)index.".$phpEx."\?f=([0-9]+)".$amp."ppage=([0-9]+)".$amp."start=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)".$amp."start=([0-9]+)".$amp."ppage=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)".$amp."ppage=([0-9]+)(".$amp."){0,1}'",
"'(?)index.".$phpEx."\?f=([0-9]+)(".$amp."){0,1}'",
"'(?)viewtopic.".$phpEx."\?t=([0-9]+)".$amp."start=([0-9]+)(".$amp."){0,1}'" ,
"'(?)viewtopic.".$phpEx."\?t=([0-9]+)(".$amp."){0,1}'",
"'(?)viewtopic.".$phpEx."\?p=([0-9]+)(".$amp."){0,1}'",
"'(?)profile.".$phpEx."\?mode\=viewprofile".$amp."u=([0-9]+)(".$amp."){0,1}'",
// mx Sitemaps Module (Paginated Forum URL)
//"'(?)forum-map([0-9]+)\.html".$amp."start=([0-9]+)(".$amp."){0,1}'",
// mx Sitemaps Module (mxBB map URL + pagination)
//"'(?)mx-map\.html".$amp."start=([0-9]+)(".$amp."){0,1}'"
);
$urlout = array( "forum\\1-\\2-\\3.html".if_query('\\4')."",
"forum\\1-\\3-\\2.html".if_query('\\4')."",
"forum\\1".if_first('\\2').".html".if_query('\\3')."",
"forum\\1.html".if_query('\\2')."",
"topic\\1-\\2.html".if_query('\\3')."",
"topic\\1.html".if_query('\\2')."",
"post\\1.html".if_query('\\2')."",
"membre\\1.html".if_query('\\2')."",
// mx Sitemaps Module (Paginated Forum URL)
//"forum-map\\1-\\2.html".if_query('\\3')."",
// mx Sitemaps Module (mxBB map URL + pagination)
//"mx-map-\\1.html".if_query('\\2').""
);
$url = preg_replace($urlin, $urlout, $url);
$url = str_replace ('?#', '#', $url);
$url = (substr($url, strlen($url) - 1, 1) == '?') ? substr($url, 0, strlen($url) - 1) : $url;
// www.phpBB-SEO.com SEO TOOLKIT END
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}
SeO wrote:Don't forget to install the Cyber alien Guest session mod or any other SID removal method you may prefer.

$SID = 'sid=' . $session_id;
#
#-----[ FIND ]---------------------------------------------
# around line 210
$SID = 'sid=' . $session_id;
#
#-----[ REPLACE WITH ]---------------------------------------
#
$SID = $user_id > 0 ? 'sid=' . $session_id : '';#
#-----[ FIND ]------------------------------------------
#
$SID = 'sid=' . $session_id;
#
#-----[ REPLACE WITH ]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ( $userdata['session_user_id'] != ANONYMOUS || $userdata['session_page'] == -4 || $userdata['session_page'] == -2 )
$SID = 'sid=' . $session_id;
else
$SID = '';
// www.phpBB-SEO.com SEO TOOLKIT END
Return to phpBB2 Simple mod rewrite
Users browsing this forum: No registered users and 2 guests