List of WordPress 2.x Rewrite Rules & Usage Notes名單的WordPress 2.x的重寫規則&使用筆記
Comprehensive List of WordPress 2.x Rewrite Rules : 綜合清單的WordPress 2.x的重寫規則 :
Note 1: The built-in rules are provided to guide you in writing your own fancy rules.注1 :內置的規則提供指導您在寫作您自己中意的規則。
Note 2: In case you are wondering anything before and including the ‘?’ is ignored in match.注2 :在情況下,您是不知道什麼之前,和包括' ? '是忽視了比賽。 The whole match is actually stored in a variable which is never used.整個比賽實際上是儲存在一個變量中是從未使用過。 So you can as well have your match starting with ‘?’.因此您可以以及您的比賽開始, ' ? ' 。 The current implementation of WordPress doesn’t care.目前實施的WordPress不在乎。
Note 3: WordPress rewrite rules infrastructure is sort of brain dead.注3 :在WordPress重寫規則的基礎設施是一種腦死亡。 What I mean is that you do all that fancy rewriting stuff without reaping much benefit at the end.我的意思是,你盡一切花式重寫的東西沒有獲得多少好處,在末。 You have to anyway add action to ‘template_redirect’ and redirect it to your hearts content.你必須添加無論如何行動,以' template_redirect '和重定向到您心中的內容。 WordPress doesn’t do it for you unlike .htaccess. WordPress所不為你不像。 htaccess的。 The whole infrastructure is to help WP developers and not you, the user.整個基礎設施是為了幫助可濕性粉劑發展,而不是你的用戶。 Actually it makes these rules harder to access for the end-users (bloggers).事實上,它使這些規則更難獲得為最終用戶(博客) 。 Also new rules are only updated when you manually update the permalink structure, unless you know the magic incantation此外,新規則是,只有更新當您手動更新的永久結構,除非你知道魔術incantation ![]()
| Match 比賽 | Query 查詢 |
| index.php/(archives)/trackback/?$的index.php / (檔案) /跟踪/ ?元 | index.php?pagename=$matches[1]&tb=1的index.php ?頁= $ matches [ 1 ]為&結核病= 1 |
| index.php/(archives)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php / (檔案) /飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?pagename=$matches[1]&feed=$matches[2]的index.php ?頁= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/(archives)/(feed|rdf|rss|rss2|atom)/?$的index.php / (檔案) / (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?pagename=$matches[1]&feed=$matches[2]的index.php ?頁= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/(archives)/page/?([0-9]{1,})/?$的index.php / (檔案) /頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?pagename=$matches[1]&paged=$matches[2]的index.php ?頁= $ matches [ 1 ]為&分頁= $比賽[ 2 ] |
| index.php/(archives)(/[0-9]+)?/?$的index.php / (檔案) ( / [ 0-9 ]+)?/?$ | index.php?pagename=$matches[1]&page=$matches[2]的index.php ?頁= $ matches [ 1 ]為&頁= $比賽[ 2 ] |
| index.php/archives/attachment/([^/]+)/?$的index.php /檔案/實習/([^/]+)/?$ | index.php?attachment=$matches[1]的index.php ?扣押= $匹配[ 1 ] |
| index.php/archives/attachment/([^/]+)/trackback/?$的index.php /檔案/實習/([^/]+)/跟踪/ ?元 | index.php?attachment=$matches[1]&tb=1的index.php ?扣押= $ matches [ 1 ]為&結核病= 1 |
| index.php/archives/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /檔案/實習/([^/]+)/飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?attachment=$matches[1]&feed=$matches[2]的index.php ?扣押= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/archives/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$的index.php /檔案/實習/([^/]+)/(飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?attachment=$matches[1]&feed=$matches[2]的index.php ?扣押= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/(about)/trackback/?$的index.php / (約) /跟踪/ ?元 | index.php?pagename=$matches[1]&tb=1的index.php ?頁= $ matches [ 1 ]為&結核病= 1 |
| index.php/(about)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php / (約) /飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?pagename=$matches[1]&feed=$matches[2]的index.php ?頁= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/(about)/(feed|rdf|rss|rss2|atom)/?$的index.php / (約) / (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?pagename=$matches[1]&feed=$matches[2]的index.php ?頁= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/(about)/page/?([0-9]{1,})/?$的index.php / (約) /頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?pagename=$matches[1]&paged=$matches[2]的index.php ?頁= $ matches [ 1 ]為&分頁= $比賽[ 2 ] |
| index.php/(about)(/[0-9]+)?/?$的index.php / (約) ( / [ 0-9 ]+)?/?$ | index.php?pagename=$matches[1]&page=$matches[2]的index.php ?頁= $ matches [ 1 ]為&頁= $比賽[ 2 ] |
| index.php/about/attachment/([^/]+)/?$的index.php /約/實習/([^/]+)/?$ | index.php?attachment=$matches[1]的index.php ?扣押= $匹配[ 1 ] |
| index.php/about/attachment/([^/]+)/trackback/?$的index.php /約/實習/([^/]+)/跟踪/ ?元 | index.php?attachment=$matches[1]&tb=1的index.php ?扣押= $ matches [ 1 ]為&結核病= 1 |
| index.php/about/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /約/實習/([^/]+)/飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?attachment=$matches[1]&feed=$matches[2]的index.php ?扣押= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/about/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$的index.php /約/實習/([^/]+)/(飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?attachment=$matches[1]&feed=$matches[2]的index.php ?扣押= $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?&feed=$matches[1]的index.php ? &飼料= $匹配[ 1 ] |
| index.php/(feed|rdf|rss|rss2|atom)/?$的index.php / (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?&feed=$matches[1]的index.php ? &飼料= $匹配[ 1 ] |
| index.php/page/?([0-9]{1,})/?$的index.php /頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?&paged=$matches[1]的index.php ? &分頁= $匹配[ 1 ] |
| index.php/comments/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /評論/飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?&feed=$matches[1]&withcomments=1的index.php ? &飼料= $ matches [ 1 ]為& withcomments = 1 |
| index.php/comments/(feed|rdf|rss|rss2|atom)/?$的index.php /評論/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?&feed=$matches[1]&withcomments=1的index.php ? &飼料= $ matches [ 1 ]為& withcomments = 1 |
| index.php/comments/page/?([0-9]{1,})/?$的index.php /評論/頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?&paged=$matches[1]的index.php ? &分頁= $匹配[ 1 ] |
| index.php/search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /搜索/(.+)/飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?s=$matches[1]&feed=$matches[2]的index.php ? =元matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/search/(.+)/(feed|rdf|rss|rss2|atom)/?$的index.php /搜索/(.+)/(飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?s=$matches[1]&feed=$matches[2]的index.php ? =元matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/search/(.+)/page/?([0-9]{1,})/?$的index.php /搜索/(.+)/頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?s=$matches[1]&paged=$matches[2]的index.php ? =元matches [ 1 ]為&分頁= $比賽[ 2 ] |
| index.php/search/(.+)/?$的index.php /搜索/(.+)/?$ | index.php?s=$matches[1]的index.php ? =元匹配[ 1 ] |
| index.php/category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$的index.php /類別/(.+?)/飼料/ (飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?category_name=$matches[1]&feed=$matches[2]的index.php ? category_name = $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/category/(.+?)/(feed|rdf|rss|rss2|atom)/?$的index.php /類別/(.+?)/(飼料| RDF的|的RSS | rss2 |原子) / ?元 | index.php?category_name=$matches[1]&feed=$matches[2]的index.php ? category_name = $ matches [ 1 ]為&飼料= $比賽[ 2 ] |
| index.php/category/(.+?)/page/?([0-9]{1,})/?$的index.php /類別/(.+?)/頁/ ? ( [ 0-9 ] (一,})/?$ | index.php?category_name=$matches[1]&paged=$matches[2]的index.php ? category_name = $ matches [ 1 ]為&分頁= $比賽[ 2 ] |
| index.php/category/(.+?)/?$的index.php /類別/(.+?)/?$ | index.php?category_name=$matches[1]的index.php ? category_name = $匹配[ 1 ] |
Filed under提起下 CMS Software CMS軟件 , , Headline News頭條新聞 , , How To如何 , , PHP PHP的 , , Pro Blogging贊成Blogging , , Tech Note技術說明 , , Web網頁 , , WordPress在WordPress | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |





August 28th, 2006 at 10:33 pm 2006年8月28日在下午10時33分
[...] Angsuman published a “comprehensive list of WordPress 2.x rewrite rules.” [...] [ … … ]由Angsuman發表了一項“綜合清單的WordPress 2.x的重寫規則” [ … … ]
November 2nd, 2006 at 7:05 am 2006年11月2日在上午07時05分
[...] A comprehensive list of WordPress 2.x Rewrite rules. [ … … ]一個全面的名單在WordPress 2.x的重寫規則。 [...] [ … … ]