diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 20e737dba..c447dc9f1 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -151,7 +151,7 @@ $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); +RewriteRule ^?([0-9a-z-]+)?/? index.php?category_name=$1 [QSA] get_var("SELECT category_nicename FROM $tablecategories WHERE cat_ID = $category_id"); // Get any static stuff from the front $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); - $link = $siteurl . $front . 'category/' . $category_nicename; + $link = $siteurl . $front . 'category/' . $category_nicename . '/'; } if ($echo) echo $link;