mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Allow people to modify and add on to rewrite rules.
git-svn-id: https://develop.svn.wordpress.org/trunk@1350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3abc94a5c5
commit
d3d19e57c0
@ -123,10 +123,12 @@ if ('/' != substr($home_root, -1)) $home_root = $home_root . '/';
|
||||
RewriteBase <?php echo $home_root; ?>
|
||||
<?php
|
||||
$rewrite = rewrite_rules('', $permalink_structure);
|
||||
$rules = '';
|
||||
foreach ($rewrite as $match => $query) {
|
||||
if (strstr($query, 'index.php')) echo 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA]\n";
|
||||
else echo 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n";
|
||||
if (strstr($query, 'index.php')) $rules .= 'RewriteRule ^' . $match . ' ' . $home_root . $query . " [QSA]\n";
|
||||
$rules .= 'RewriteRule ^' . $match . ' ' . $site_root . $query . " [QSA]\n";
|
||||
}
|
||||
echo apply_filters('rewrite_rules', $rules);
|
||||
?>
|
||||
</textarea>
|
||||
</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user