Changeset 21823 for trunk/wp-includes/rewrite.php
- Timestamp:
- 09/11/2012 10:22:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r21819 r21823 1743 1743 if (is_subdomain_install()) { 1744 1744 $rules .= ' 1745 <rule name=" wordpress -Rule 1" stopProcessing="true">1745 <rule name="WordPress Rule 1" stopProcessing="true"> 1746 1746 <match url="^index\.php$" ignoreCase="false" /> 1747 1747 <action type="None" /> 1748 </rule> 1749 <rule name="wordpress - Rule 2" stopProcessing="true"> 1748 </rule>'; 1749 if ( get_site_option( 'ms_files_rewriting' ) ) { 1750 $rules .= ' 1751 <rule name="WordPress Rule for Files" stopProcessing="true"> 1750 1752 <match url="^files/(.+)" ignoreCase="false" /> 1751 1753 <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" /> 1752 </rule> 1753 <rule name="wordpress - Rule 3" stopProcessing="true"> 1754 </rule>'; 1755 } 1756 $rules .= ' 1757 <rule name="WordPress Rule 2" stopProcessing="true"> 1754 1758 <match url="^" ignoreCase="false" /> 1755 1759 <conditions logicalGrouping="MatchAny"> … … 1759 1763 <action type="None" /> 1760 1764 </rule> 1761 <rule name=" wordpress - Rule 4" stopProcessing="true">1765 <rule name="WordPress Rule 3" stopProcessing="true"> 1762 1766 <match url="." ignoreCase="false" /> 1763 1767 <action type="Rewrite" url="index.php" /> … … 1765 1769 } else { 1766 1770 $rules .= ' 1767 <rule name=" wordpress -Rule 1" stopProcessing="true">1771 <rule name="WordPress Rule 1" stopProcessing="true"> 1768 1772 <match url="^index\.php$" ignoreCase="false" /> 1769 1773 <action type="None" /> 1770 </rule> 1771 <rule name="wordpress - Rule 2" stopProcessing="true"> 1774 </rule>'; 1775 if ( get_site_option( 'ms_files_rewriting' ) ) { 1776 $rules .= ' 1777 <rule name="WordPress Rule for Files" stopProcessing="true"> 1772 1778 <match url="^([_0-9a-zA-Z-]+/)?files/(.+)" ignoreCase="false" /> 1773 1779 <action type="Rewrite" url="wp-includes/ms-files.php?file={R:2}" appendQueryString="false" /> 1774 </rule> 1775 <rule name="wordpress - Rule 3" stopProcessing="true"> 1780 </rule>'; 1781 } 1782 $rules .= ' 1783 <rule name="WordPress Rule 2" stopProcessing="true"> 1776 1784 <match url="^([_0-9a-zA-Z-]+/)?wp-admin$" ignoreCase="false" /> 1777 1785 <action type="Redirect" url="{R:1}wp-admin/" redirectType="Permanent" /> 1778 1786 </rule> 1779 <rule name=" wordpress - Rule 4" stopProcessing="true">1787 <rule name="WordPress Rule 3" stopProcessing="true"> 1780 1788 <match url="^" ignoreCase="false" /> 1781 1789 <conditions logicalGrouping="MatchAny"> … … 1785 1793 <action type="None" /> 1786 1794 </rule> 1787 <rule name=" wordpress - Rule 5" stopProcessing="true">1795 <rule name="WordPress Rule 4" stopProcessing="true"> 1788 1796 <match url="^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*)" ignoreCase="false" /> 1789 1797 <action type="Rewrite" url="{R:1}" /> 1790 1798 </rule> 1791 <rule name=" wordpress - Rule 6" stopProcessing="true">1799 <rule name="WordPress Rule 5" stopProcessing="true"> 1792 1800 <match url="^([_0-9a-zA-Z-]+/)?(.*\.php)$" ignoreCase="false" /> 1793 1801 <action type="Rewrite" url="{R:2}" /> 1794 1802 </rule> 1795 <rule name=" wordpress - Rule 7" stopProcessing="true">1803 <rule name="WordPress Rule 6" stopProcessing="true"> 1796 1804 <match url="." ignoreCase="false" /> 1797 1805 <action type="Rewrite" url="index.php" />
Note: See TracChangeset
for help on using the changeset viewer.