Redirection web.config problème
Posté : 01 mars 2012, 20:58
Bonsoir,
je voudrais rediriger des adresses de types: http://soka-espadrilles.com/collection-fiches.php?c=2 vers http://soka-espadrilles.com/collection-femme.html
J'ai bien procédé au Rewriting d'URL sur le web.config ( site hébergé sur serveur Windows). Voici mon web.config:
je voudrais rediriger des adresses de types: http://soka-espadrilles.com/collection-fiches.php?c=2 vers http://soka-espadrilles.com/collection-femme.html
J'ai bien procédé au Rewriting d'URL sur le web.config ( site hébergé sur serveur Windows). Voici mon web.config:
Code : Tout sélectionner
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<caching>
<profiles>
<remove extension=".xml" />
<add extension=".xml" policy="DontCache" kernelCachePolicy="DontCache" duration="00:00:30" />
</profiles>
</caching>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^collection-femme\.html$" ignoreCase="false" />
<action type="Rewrite" url="/collection-fiches.php?c=2" appendQueryString="false" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^collection-homme\.html$" ignoreCase="false" />
<action type="Rewrite" url="/collection-fiches.php?c=3" appendQueryString="false" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^collection-enfants\.html$" ignoreCase="false" />
<action type="Rewrite" url="/collection-fiches.php?c=13" appendQueryString="false" />
</rule>
<rule name="Imported Rule 4" stopProcessing="true">
<match url="^collection-mariage\.html$" ignoreCase="false" />
<action type="Rewrite" url="/collection-fiches.php?c=10" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Comment faire une redirection permanente?
Merci.