WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20746, comment 16


Ignore:
Timestamp:
02/24/2014 10:57:17 PM (7 years ago)
Author:
wpmuguru
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20746, comment 16

    initial v1  
    55In the full htaccess above the rewrite condition
    66
    7 `RewriteCond %{REQUEST_URI} ^/wp-(content|admin|includes).*$`
     7{{{
     8RewriteCond %{REQUEST_URI} ^/wp-(content|admin|includes).*$`
     9}}}
    810
    9 will only be met if the requested path begins with //. The RewriteBase directive tells the rewrite engine to start rewriting after the base value.
     11will only be met if the requested path begins with `//`. The RewriteBase directive tells the rewrite engine to start rewriting after the base value.
    1012
    1113Secondly, that .htaccess isn't what I suggested to Pippin. What I suggested was
    1214
    13 `
     15{{{
    1416RewriteCond %{REQUEST_URI} !^wp-(content|admin|includes).*$
    1517RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    16 `
     18}}}
    1719
    1820Looking at the original rule it would probably be easier to remove the ? from the original rule
    1921
    20 `
     22{{{
    2123RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    22 `
     24}}}