Je me suis fait une petite aide pour la création de .htaccess + robots.txt avec Gf-Portal.. et les mettre à la racine du site..
J'aimerais savoir si c'est correct...
- Code: Tout sélectionner
####################################
# Dans .htaccess
# A insérer pour Gf-Portal avant le code
#
# Options +FollowSymlinks
# RewriteEngine On
# RewriteBase /
#####################################
# Code a insérer
# DirectoryIndex portal.php index.php
#####################################
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM PROTECTION RULE
RewriteRule ^forum/.+/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.+-vc([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.+-vf([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.+-vf([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/topic([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/topic([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/membre([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
# Pour Gf-Portal
######################################
#Ouvrir includes/page_header.php
#
# trouver et effacer :
#
# if ( !strpos($HTTP_SERVER_VARS['REQUEST_URI'], '.' . $phpEx ) && ($HTTP_SERVER_VARS['REQUEST_URI']!="") )
# {
# $header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
# header($header_location . append_sid("portal.$phpEx", true));
# exit;
# }
######################################
# robots.txt
######################################
User-agent: *
Disallow: /forum/viewtopic.php
Disallow: /forum/viewforum.php
Disallow: /forum/index.php?
Disallow: /forum/posting.php
Disallow: /forum/groupcp.php
Disallow: /forum/search.php
Disallow: /forum/login.php
Disallow: /forum/post
Disallow: /forum/profile.php
Disallow: /forum/memberlist.php
Disallow: /forum/faq.php
Par la suite, je ferai la MAJ "0.0.1_0.0.2_Mixed_UpdateFR.txt"
Autre question .. j'ai eu beau fouiller tous les posts et je n'ai pas trouvé la réponse..
Où installer les fichiers..
"sitemap_forum.php" et "sitemap_kb.php", mais je pense que ce dernier je n'en ai pas besoin..
Par avance, merci...
J.Cl.

Français |
Anglais

