Page/subpage URIs.

git-svn-id: https://develop.svn.wordpress.org/trunk@1752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2004-10-06 02:18:37 +00:00
parent 112d84ee01
commit c54a49b9aa
8 changed files with 136 additions and 22 deletions

View File

@@ -31,6 +31,8 @@ if (isset($_POST['submit'])) {
$category_base = get_settings('category_base');
}
generate_page_rewrite_rules();
if ( (!file_exists($home_path.'.htaccess') && is_writable($home_path)) || is_writable($home_path.'.htaccess') )
$writable = true;
else
@@ -41,10 +43,7 @@ if ( strstr($permalink_structure, 'index.php') ) // If they're using
else
$usingpi = false;
if ( $writable && !$usingpi && $is_apache ) {
$rules = explode("\n", mod_rewrite_rules($permalink_structure));
insert_with_markers($home_path.'.htaccess', 'WordPress', $rules);
}
save_mod_rewrite_rules();
?>
<?php if (isset($_POST['submit'])) : ?>