From 4f3bce79bfb5851cef9e7bc655c91bb3093cc401 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 12 Jul 2005 11:27:54 +0000 Subject: Initial Import git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/options-permalink.php | 116 +++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 wp-inst/wp-admin/options-permalink.php (limited to 'wp-inst/wp-admin/options-permalink.php') diff --git a/wp-inst/wp-admin/options-permalink.php b/wp-inst/wp-admin/options-permalink.php new file mode 100644 index 0000000..d080b4b --- /dev/null +++ b/wp-inst/wp-admin/options-permalink.php @@ -0,0 +1,116 @@ +set_permalink_structure($permalink_structure); + } + + if ( isset($_POST['category_base']) ) { + $category_base = $_POST['category_base']; + if (! empty($category_base) ) + $category_base = preg_replace('#/+#', '/', '/' . $_POST['category_base']); + $wp_rewrite->set_category_base($category_base); + } +} + +$permalink_structure = get_settings('permalink_structure'); +$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 + $writable = false; + +if ($wp_rewrite->using_index_permalinks()) + $usingpi = true; +else + $usingpi = false; + +save_mod_rewrite_rules(); +?> + + +

+ + +
+

+

number of tags are available, and here are some examples to get you started.'); ?>

+ + +
+
: /%year%/%monthnum%/%day%/%postname%/
+ +
:
+
+
: /archives/%post_id%
+ +
: /archives/123
+
+
+
+ +

mod_rewrite installed on your server. (Ask your host.) If that isn’t available, you can prefix the structure with /index.php/ . This is the recommend method if you are on any web server but Apache.'); ?>

+ + +
+
: /index.php/%year%/%monthnum%/%day%/%postname%/
+ +
:
+
+
: /index.php/archives/%post_id%
+ +
: /index.php/archives/123
+
+
+
+ + +
+

+

+ : +

+ +

/taxonomy/categorias would make your category links like http://example.org/taxonomy/categorias/uncategorized/. If you leave this blank the default will be used.') ?>

+ +

/index.php/taxonomy/categorias would make your category links like http://example.org/index.php/taxonomy/categorias/uncategorized/. If you leave this blank the default will be used.') ?>

+ +

+ : +

+

+ +

+
+ +

.htaccess was writable we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.') ?>

+
+

+ +

+
+ + +
+ + \ No newline at end of file -- cgit