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:
Comment faire une redirection permanente?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <?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>
Merci.
Partager