Je me lance dans l'URL Rewrinting pour PHP-Nuke

Nouveau WRInaute
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 :

# 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
 
Nouveau WRInaute
Mitirapa a dit:
si tu veux pas t'emmerder met google tap
https://www.google.fr/search?sourceid=na ... ap+phpnuke
tu auras l'url rewriting pour phpnuke en qques miniutes

mais apres si t'aimes le code, preferes au lieu de google tap changer tous els liens de tes modules à la main, tu gagneras en rapidité au final , mais c carrement chiant

Bon je viens de trouver google tap, il me reste plus qu'a l' installer...

tu gagneras en rapidité au final

Qu' entends-tu par rapidiité ???

Merci a toi.

Styvoo
 
Nouveau WRInaute
Styvoo a dit:
Qu' entends-tu par rapidiité ???

Les pages de ton site s'afficheront plus vite, car la fonction intégrée dans le header.php qui remplace toutes les url de nuke en leurs équivalents après l'url rewriting est très lourde :wink:

J'ai changé tous les liens de mes modules à la main, et on voit clairement la différence, c'est nettement plus rapide.

Il n'y a que pour le Forum, où je ne sais pas comment modifer à la mains les fichiers. Les url de phpBB sont pas claire, j'ai pas piger comment les remplacer :?
 
Nouveau WRInaute
Ok, j’ai installé les 3 fichiers google Tap est tout fonctionnent presque bien mais je n’ai pas vu de ralentissement mais j’ai une une ligne a haut débit chez moi 2000 en entrée et 800 en sortie, alors c’est sûrement pour ça.


Mais au niveau rapidité d’installation c’est 5 minutes grand max….

Maintenant je pense qu’il me faudra attendre 3 ou 4 semaines avant de voire le résultat ???

Merci de votre aide.

@+

Styvoo
http://www.styvoo.ch
 
Discussions similaires
Haut