IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1501 | 1501 | } |
1502 | 1502 | |
1503 | 1503 | $rules = "<IfModule mod_rewrite.c>\n"; |
1504 | | $rules .= "RewriteEngine On\n"; |
1505 | | $rules .= "RewriteBase $home_root\n"; |
| 1504 | $rules .= "\tRewriteEngine On\n"; |
| 1505 | $rules .= "\tRewriteBase $home_root\n"; |
1506 | 1506 | |
1507 | 1507 | // Prevent -f checks on index.php. |
1508 | | $rules .= "RewriteRule ^index\.php$ - [L]\n"; |
| 1508 | $rules .= "\tRewriteRule ^index\.php$ - [L]\n"; |
1509 | 1509 | |
1510 | 1510 | // Add in the rules that don't redirect to WP's index.php (and thus shouldn't be handled by WP at all). |
1511 | 1511 | foreach ( (array) $this->non_wp_rules as $match => $query ) { |
1512 | 1512 | // Apache 1.3 does not support the reluctant (non-greedy) modifier. |
1513 | 1513 | $match = str_replace( '.+?', '.+', $match ); |
1514 | 1514 | |
1515 | | $rules .= 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA,L]\n"; |
| 1515 | $rules .= "\tRewriteRule ^" . $match . ' ' . $home_root . $query . " [QSA,L]\n"; |
1516 | 1516 | } |
1517 | 1517 | |
1518 | 1518 | if ( $this->use_verbose_rules ) { |
1519 | 1519 | $this->matches = ''; |
1520 | 1520 | $rewrite = $this->rewrite_rules(); |
1521 | 1521 | $num_rules = count( $rewrite ); |
1522 | | $rules .= "RewriteCond %{REQUEST_FILENAME} -f [OR]\n" . |
1523 | | "RewriteCond %{REQUEST_FILENAME} -d\n" . |
1524 | | "RewriteRule ^.*$ - [S=$num_rules]\n"; |
| 1522 | $rules .= "\tRewriteCond %{REQUEST_FILENAME} -f [OR]\n" . |
| 1523 | "\tRewriteCond %{REQUEST_FILENAME} -d\n" . |
| 1524 | "\tRewriteRule ^.*$ - [S=$num_rules]\n"; |
1525 | 1525 | |
1526 | 1526 | foreach ( (array) $rewrite as $match => $query ) { |
1527 | 1527 | // Apache 1.3 does not support the reluctant (non-greedy) modifier. |
1528 | 1528 | $match = str_replace( '.+?', '.+', $match ); |
1529 | 1529 | |
1530 | 1530 | if ( strpos( $query, $this->index ) !== false ) { |
1531 | | $rules .= 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA,L]\n"; |
| 1531 | $rules .= "\tRewriteRule ^" . $match . ' ' . $home_root . $query . " [QSA,L]\n"; |
1532 | 1532 | } else { |
1533 | | $rules .= 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA,L]\n"; |
| 1533 | $rules .= "\tRewriteRule ^" . $match . ' ' . $site_root . $query . " [QSA,L]\n"; |
1534 | 1534 | } |
1535 | 1535 | } |
1536 | 1536 | } else { |
1537 | | $rules .= "RewriteCond %{REQUEST_FILENAME} !-f\n" . |
1538 | | "RewriteCond %{REQUEST_FILENAME} !-d\n" . |
1539 | | "RewriteRule . {$home_root}{$this->index} [L]\n"; |
| 1537 | $rules .= "\tRewriteCond %{REQUEST_FILENAME} !-f\n" . |
| 1538 | "\tRewriteCond %{REQUEST_FILENAME} !-d\n" . |
| 1539 | "\tRewriteRule . {$home_root}{$this->index} [L]\n"; |
1540 | 1540 | } |
1541 | 1541 | |
1542 | | $rules .= "</IfModule>\n"; |
| 1542 | $rules .= "</IfModule>"; |
1543 | 1543 | |
1544 | 1544 | /** |
1545 | 1545 | * Filters the list of rewrite rules formatted for output to an .htaccess file. |