|
Publicité | ||||||||||||||||||||||
|
|
#1 |
|
Invité de passage
![]() bertrand usal Inscription : octobre 2009 Messages : 5 ![]() |
Bonjour,
J'ai l'option de construire mes url pour des pages PHP à la volée comme avec mod_rewrite mais c'est ISAPI_Rewrite qu'il est question pour IIS. Je ne trouve pas trop d'aide sur ce sujet. Je crois que c'est dans le fichier racine httpd.ini que je dois inscrire les informations. Quelqu'un pourrait m'aider à construire une règle pour ça ? ![]() La doc se trouve ici http://www.helicontech.com/isapi_rewrite/doc/ mais j'y comprend pas grand chose J'oubliais de dire qu'il sagit de la version 2.11 dont utilise mon hébergeur voici le fichier .htaccess original à convertir ------------------------------------------------ Options +FollowSymLinks RewriteEngine on RewriteRule gallery_(.*)_m(.*)-sb_(.*)-so_(.*)-page(.*).html gallery.php?gid=$2&sort_by=$3&sort_order=$4&page_num=$5 RewriteRule new_photos-page(.*).html new_photos.php?page_num=$1 RewriteRule pop_photos-page(.*).html popular_photos.php?page_num=$1 RewriteRule (.*)_g(.*)-(.*)_p(.*).html details.php?gid=$2&pid=$4 RewriteRule (.*)_g(.*).html gallery.php?gid=$2 -------------------------------------------------- Merci à vous Bertrand Dernière modification par idclic-photo ; 30/10/2009 à 20h39. |
|
|
00
|
|
|
#2 |
|
Invité de passage
![]() bertrand usal Inscription : octobre 2009 Messages : 5 ![]() |
voici mon fichier httpd.ini
C'est pour ktools photostore ### subdomain redirect ### RewriteCond Host: (?:.+\.)?idclic-photo\.com RewriteRule (.*) /photostore$1 [I,L] RewriteRule /gallery_(.*)_m(.*)-sb_(.*)-so_(.*)-page(.*)\.html /gallery.php\? gid=$2&sort_by=$3&sort_order=$4&page_num=$5 [I,L] RewriteRule /new_photos-page(.*)\.html /new_photos.php\?page_num=$1 [I,L] RewriteRule /pop_photos-page(.*)\.html /popular_photos.php\?page_num=$1 [I,L] RewriteRule /(.*)_g(.*)-(.*)_p(.*)\.html /details.php\?gid=$2&pid=$4 [I,L] RewriteRule /(.*)_g(.*)\.html /gallery.php\?gid=$2 [I,L] -------------------------------- Mais ça ne fonctionne pas et mon hébergeur ne peut m'aider sur le sujet. |
|
|
00
|
Copyright © 2000-2012 - www.developpez.com