web.config 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3. <system.webServer>
  4. <rewrite>
  5. <rules>
  6. <rule name="index" stopProcessing="true">
  7. <match url="^index\.html$" ignoreCase="true" />
  8. <action type="Rewrite" url="index.php" />
  9. </rule>
  10. <rule name="1" stopProcessing="true">
  11. <match url="^(.*)show-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
  12. <action type="Rewrite" url="{R:1}index.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}" appendQueryString="true" />
  13. </rule>
  14. <rule name="2" stopProcessing="true">
  15. <match url="^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
  16. <action type="Rewrite" url="{R:1}index.php\?m=content&amp;c=index&amp;a=show&amp;catid={R:2}&amp;id={R:3}&amp;page={R:4}" appendQueryString="true" />
  17. </rule>
  18. <rule name="4" stopProcessing="true">
  19. <match url="^(.*)list-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
  20. <action type="Rewrite" url="{R:1}index.php\?m=content&amp;c=index&amp;a=lists&amp;catid={R:2}&amp;page={R:3}" appendQueryString="true" />
  21. </rule>
  22. <rule name="5" stopProcessing="true">
  23. <match url="^(.*)list-([0-9]+)-(.*)-(.*)-(.*)-(.*)-([0-9]+)\.html$" ignoreCase="false" />
  24. <action type="Rewrite" url="{R:1}index.php\?m=content&amp;c=index&amp;a=lists&amp;catid={R:2}&amp;class={R:3}&amp;color={R:4}&amp;price={R:5}&amp;pstyle={R:6}&amp;page={R:7}" appendQueryString="true" />
  25. </rule>
  26. </rules>
  27. </rewrite>
  28. <defaultDocument>
  29. <files>
  30. <add value="ydy.html" />
  31. </files>
  32. </defaultDocument>
  33. </system.webServer>
  34. </configuration>