Voila je m’y met…..
J’ai contrôlé si mon hébergeur avait activé l’ URL rewriting, voila sa réponse (notre serveur Apache charge le module rewrite_module de la source mod_rewrite.c) donc je présume que jusque là c’est OK ?
J’ai à la racine de mon site un fichier qui ce nomme .htaccess qui contient cela :
Voila c’est déjà un début….
J’ai lu pas mal de doc sur votre forum est je n’y comprend rien du tout, enfin il me semble que je dois décider d’une règle a appliquer pour renommer mes URL, a vrais dire la règle m’importe peux c’est le résultat qui m’intéresse est étant débutent je vais prendre la plus simple..Mais la quelle est-ce ???
En faite si j’ai bien compris je crée une règle de mon fichier .htaccess est celui-ci modifiera en arrière plans mes adresse au passage de google….
Merci de votre aide…
@+
Styvoo
J’ai contrôlé si mon hébergeur avait activé l’ URL rewriting, voila sa réponse (notre serveur Apache charge le module rewrite_module de la source mod_rewrite.c) donc je présume que jusque là c’est OK ?
J’ai à la racine de mon site un fichier qui ce nomme .htaccess qui contient cela :
# vérifier avant d'activer que le serveur apache permet l'utilisation des options
#Options +FollowSymlinks
#Options -Indexes
<Limit GET PUT POST>
order allow,deny
#Mettre ici les adresses ip à banir
#deny from 192.168.150.
#deny from 192.
allow from all
</Limit>
# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files>
#Chemin de la page pour gérer l'erreur d'absence d'une ressource
# A adapter en fonction du site
ErrorDocument 404 http://www.styvoo.ch
#A activer seulement si vous posséder l'extension mod_rewrite sur apache
#RewriteEngine on
#RewriteCond %{HTTP_USER_AGENT} "Collage" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Custo" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Download Wonder" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "ESIRover" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetBot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetURL" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "GetWeb" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "HavIndex" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "httrack" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "InfoSpiders" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Internet Explore" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Jeeves" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "jpeg hunt" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "KDD Explorer" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "LightningDownload" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "PBWF" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Shai'Hulud" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "SpiderBot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "ssearcher100" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Templeton" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "vobsub" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "w3mir" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebBandit" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCatcher" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "webcopier" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCopy" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebFetcher" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebMirror" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebReaper" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "webvac" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebWalk" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "wGet" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "xGet" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "atSpider" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "autoemailspider" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "cherrypicker" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "DSurf" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "DTS Agent" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EliteSys Entry" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailCollector" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailSiphon" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "EmailWolf" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Mail Sweeper" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "munky" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Roverbot" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "eCatch" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "MemoWeb" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "Teleport Pro" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebCopier" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebZIP" [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} "WebEmailExtrac" [NC]
#RewriteRule .* - [F,L]
#RewriteRule ^index.html index.php
Voila c’est déjà un début….
J’ai lu pas mal de doc sur votre forum est je n’y comprend rien du tout, enfin il me semble que je dois décider d’une règle a appliquer pour renommer mes URL, a vrais dire la règle m’importe peux c’est le résultat qui m’intéresse est étant débutent je vais prendre la plus simple..Mais la quelle est-ce ???
En faite si j’ai bien compris je crée une règle de mon fichier .htaccess est celui-ci modifiera en arrière plans mes adresse au passage de google….
Merci de votre aide…
@+
Styvoo