Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

web.config

By: a guest on Nov 13th, 2011  |  syntax: None  |  size: 2.14 KB  |  views: 72  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.     <system.webServer>
  4.         <rewrite>
  5.             <rules>
  6.                 <rule name="WordPress Rule 1" stopProcessing="true">
  7.                     <match url="^index\.php$" ignoreCase="false" />
  8.                     <action type="None" />
  9.                 </rule>
  10.                 <rule name="WordPress Rule 2" stopProcessing="true">
  11.                     <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" />
  12.                     <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
  13.                 </rule>
  14.                 <rule name="WordPress Rule 3" stopProcessing="true">
  15.                     <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" />
  16.                     <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" />
  17.                 </rule>
  18.                 <rule name="WordPress Rule 4" stopProcessing="true">
  19.                     <match url="^" ignoreCase="false" />
  20.                     <conditions logicalGrouping="MatchAny">
  21.                         <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
  22.                         <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
  23.                     </conditions>
  24.                     <action type="None" />
  25.                 </rule>
  26.                 <rule name="WordPress Rule 5" stopProcessing="true">
  27.                     <match url="^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*)" ignoreCase="false" />
  28.                     <action type="Rewrite" url="{R:1}" />
  29.                 </rule>
  30.                 <rule name="WordPress Rule 6" stopProcessing="true">
  31.                     <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" />
  32.                     <action type="Rewrite" url="{R:2}" />
  33.                 </rule>
  34.                 <rule name="WordPress Rule 7" stopProcessing="true">
  35.                     <match url="." ignoreCase="false" />
  36.                     <action type="Rewrite" url="index.php" />
  37.                 </rule>
  38.             </rules>
  39.         </rewrite>
  40.     </system.webServer>
  41. </configuration>
  42.