Linux 软件免费装

Simple Rewrite Rules

开发者 WordPress Plugins
更新时间 2011年9月11日 23:22
PHP版本: 2.7 及以上
WordPress版本: 3.2.1

标签

simple rules rewrite wp_rewrite

下载

详情介绍:

WordPress uses rewrites to allow pretty permalinks. Simple Rewrite Rules plugin allows you to customize the URL of your WordPress blog even further. How to use rewrites If you aren't already familiar with Apache's mod_rewrite, it is recommended that you have a look at it. This plugin can parse regular expression to rewrite one URL to another. The best way to understand this is through an example: Rewrite random-posts to index.php?orderby=rand (Random posts) Rewrite (cats)|(dogs) to index.php?categoryname=$match[1] (All posts under a certain category) Rewrite ([^/]+)/popular/? to index.php?month=$match[1]&meta_key=votes&orderby=meta_value (The most popular posts in the month) Rewrite user/([^/]+)/([^/]+)/?(/(.*)) to index.php?authorname=$match[1]&day=$match[2]&categoryname=$match[4] (The possibilities are endless!) Quick Regular Expression References List of All WordPress Query Variables

安装:

  1. Upload the entire srr folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to the 'Simple Rewrite Rules' menu in your WordPress admin panel to get started!

更新日志:

1.0