WordPress: Settings Permalinks SubPanel:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: ==Settings → Permalinks== By default WordPress uses web URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL s...)
 
无编辑摘要
 
第2行: 第2行:


By default WordPress uses web URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links.   
By default WordPress uses web URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links.   
==设置 → Permalinks==
默认情况下,WordPress使用的网络URLs,有问号和许多数字,但是WordPress给你提供一个机会来为你的permalinks和archives创建一个自定义的URL结构。 这可以提高美感,用处和你的链接的向前兼容性。 


For a more in depth description of the way this structure is specified, see the [[WordPress:Using Permalinks]] article.  For an introduction to Permalinks, read the [[WordPress:Introduction_to_Blogging#Pretty_Permalinks|Pretty Permalinks]] section of [[WordPress:Introduction to Blogging]].
For a more in depth description of the way this structure is specified, see the [[WordPress:Using Permalinks]] article.  For an introduction to Permalinks, read the [[WordPress:Introduction_to_Blogging#Pretty_Permalinks|Pretty Permalinks]] section of [[WordPress:Introduction to Blogging]].
第9行: 第13行:


Back to [[WordPress:Administration Panels]].
Back to [[WordPress:Administration Panels]].
关于这个结构的更深入的描述,请看看文章[[WordPress:Using Permalinks|使用Permalinks]]。  关于Permalinks的介绍,请阅读[[WordPress:Introduction to Blogging|博客介绍]]中的[[WordPress:Introduction_to_Blogging#Pretty_Permalinks|Pretty Permalinks]]部分。
[[WordPress:Image:options-permalinks.png|640px|right|设置 Permalinks 子面板]]
返回到[[WordPress:Administration Panels|管理面板]]。




==Customize Permalink Structure==
==Customize Permalink Structure==
A [[WordPress:Using_Permalinks|number of tags are available]], and here are some examples to get you started.
A [[WordPress:Using_Permalinks|number of tags are available]], and here are some examples to get you started.


;Common settings : Check one of the radio buttons corresponding to the correct Permalink Structure for your blog.  
;Common settings : Check one of the radio buttons corresponding to the correct Permalink Structure for your blog.  
==自定义 Permalink 结构==
[[WordPress:Using_Permalinks|拥有的标签]],这里有些例子,帮你开始。
;普通设置: 选择一个单选按钮,与你的博客的正确的Permalink结构相应。


:*'''Default''' - An example of the default structure is '''<nowiki>http://www.sample.com/?p=123</nowiki>'''
:*'''Default''' - An example of the default structure is '''<nowiki>http://www.sample.com/?p=123</nowiki>'''
第23行: 第41行:


:*'''Numeric''' - An example of the numeric structure is '''<nowiki>http://www.sample.com/archives/123</nowiki>'''
:*'''Numeric''' - An example of the numeric structure is '''<nowiki>http://www.sample.com/archives/123</nowiki>'''
:*'''默认''' –默认结构的一个例子,在'''<nowiki>http://www.sample.com/?p=123</nowiki>'''
:*'''星期和名称''' –星期和名称为基础的结构是'''<nowiki>http://www.sample.com/2008/03/31/sample-post/</nowiki>'''
:*'''月份和名称''' –月份和名称为基础的结构是'''<nowiki>http://www.sample.com/2008/03/sample-post/</nowiki>'''
:*'''数字的''' –数字的结构的一个例子,是'''<nowiki>http://www.sample.com/archives/123</nowiki>'''


:*'''Custom structure''' - In the box specify the custom structure you desire to use.  One example is '''<nowiki>/archives/%year%/%monthnum%/%day%/%postname%/</nowiki>'''.  Look at the [[WordPress:Using Permalinks]] article for further discussion of [[WordPress:Using_Permalinks#Structure_Tags|Permalink Structure Tags]].
:*'''Custom structure''' - In the box specify the custom structure you desire to use.  One example is '''<nowiki>/archives/%year%/%monthnum%/%day%/%postname%/</nowiki>'''.  Look at the [[WordPress:Using Permalinks]] article for further discussion of [[WordPress:Using_Permalinks#Structure_Tags|Permalink Structure Tags]].
:*'''自定义结构''' – 这个框,规定了你想要使用的自定义结构。  一个例子是'''<nowiki>/archives/%year%/%monthnum%/%day%/%postname%/</nowiki>'''。  看看[[WordPress:Using Permalinks|使用Permalinks]]文章,看看关于[[WordPress:Using_Permalinks#Structure_Tags|Permalink 结构标签]]的深入讨论。


;Optional :You may enter custom bases for your category and tag URLs here. For example, using '''<nowiki>/topics/</nowiki>''' as your category base would make your category links like '''<nowiki>http://example.org/topics/uncategorized/</nowiki>'''. If you leave these blank the defaults will be used.  Again, see the [[WordPress:Using Permalinks]] article for further discussion of [[WordPress:Using_Permalinks#Structure_Tags|Permalink Structure Tags]].
;Optional :You may enter custom bases for your category and tag URLs here. For example, using '''<nowiki>/topics/</nowiki>''' as your category base would make your category links like '''<nowiki>http://example.org/topics/uncategorized/</nowiki>'''. If you leave these blank the defaults will be used.  Again, see the [[WordPress:Using Permalinks]] article for further discussion of [[WordPress:Using_Permalinks#Structure_Tags|Permalink Structure Tags]].
:*'''Category base''' -  Enter a custom prefix for your category URLs here.
:*'''Category base''' -  Enter a custom prefix for your category URLs here.
:*'''Tag base''' - Enter a custom prefix for your tag URLs here.
:*'''Tag base''' - Enter a custom prefix for your tag URLs here.
;可选择的:你可以为类别和标签,在这里输入自定义基础。 例如,使用'''<nowiki>/topics/</nowiki>'''作为你的类别基础,会使你的类别链接看起来像'''<nowiki>http://example.org/topics/uncategorized/</nowiki>'''。 如果你将这些保留为空白,就会使用默认设置。  再次看看[[WordPress:Using Permalinks|使用Permalinks]]文章, [[WordPress:Using_Permalinks#Structure_Tags|Permalink 结构标签]]的深入讨论。
:*'''类别基础''' –在这里为你的类别URLs输入自定义的前缀。
:*'''标签基础''' –在这里为你的标签URLs输入自定义的前缀。




第34行: 第65行:
===Update Permalink Structure===  
===Update Permalink Structure===  
; Update Permalink Struture: Click this button to save your changes.  If you don't click this button, your changes will not be saved.  After you've clicked this button, you should receive one of two messages depending on whether your [[WordPress:Glossary#.htaccess|.htaccess]] file is writeable.  For information on how to make [[WordPress:Glossary#.htaccess|.htaccess]] writeable, see [[WordPress:Changing File Permissions]].
; Update Permalink Struture: Click this button to save your changes.  If you don't click this button, your changes will not be saved.  After you've clicked this button, you should receive one of two messages depending on whether your [[WordPress:Glossary#.htaccess|.htaccess]] file is writeable.  For information on how to make [[WordPress:Glossary#.htaccess|.htaccess]] writeable, see [[WordPress:Changing File Permissions]].
<!--  现在commenting out
===更新 Permalink 结构===
;更新 Permalink 结构: 点击这个按钮保存你的更改。  如果你没有点击这个按钮,你更改的内容就不能够保存。  你点击这个按钮后,会受到一两条信息,这主要取决于你的[[WordPress:Glossary#.htaccess|.htaccess]]文件是否可写。  [[WordPress:Glossary#.htaccess|.htaccess]]可写的,请看看[[WordPress:Changing File Permissions|更改文件权限]]。
:*If [[WordPress:Glossary#.htaccess|.htaccess]] is writeable, you will get a message that says "'''Permalink structure updated.'''"  You're all set; WordPress has been able to do everything for you automatically.
:*If [[WordPress:Glossary#.htaccess|.htaccess]] is writeable, you will get a message that says "'''Permalink structure updated.'''"  You're all set; WordPress has been able to do everything for you automatically.
:*如果[[WordPress:Glossary#.htaccess|.htaccess]]是可写的,你会得到信息,显示"'''Permalink 结构更新了。'''"  你设置好了全部内容。WordPress能够自动地为你执行一切内容了。
:*If [[WordPress:Glossary#.htaccess|.htaccess]] is ''not'' writeable, you will see a message that says "'''You should update your .htaccess now.'''".  Near the bottom of the screen you will see "'''If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your [[WordPress:Glossary#.htaccess|.htaccess]] file. Click in the field and press CTRL + a to select all.'''"  This means you'll have to do one extra step yourself.  In the text box at the bottom of the SubPanel, WordPress displays several lines of [[WordPress:Glossary#mod_rewrite|rewrite]] rules associated with the Permalink Structure you designated above.  You need to manually copy everything in this text box into your [[WordPress:Glossary#.htaccess|.htaccess]] file to make your new Permalinks work.
:*If [[WordPress:Glossary#.htaccess|.htaccess]] is ''not'' writeable, you will see a message that says "'''You should update your .htaccess now.'''".  Near the bottom of the screen you will see "'''If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your [[WordPress:Glossary#.htaccess|.htaccess]] file. Click in the field and press CTRL + a to select all.'''"  This means you'll have to do one extra step yourself.  In the text box at the bottom of the SubPanel, WordPress displays several lines of [[WordPress:Glossary#mod_rewrite|rewrite]] rules associated with the Permalink Structure you designated above.  You need to manually copy everything in this text box into your [[WordPress:Glossary#.htaccess|.htaccess]] file to make your new Permalinks work.
:*如果[[WordPress:Glossary#.htaccess|.htaccess]] ''不是''可写的,你就会看到一条信息,显示"'''你现在应该更新你的.htaccess了。'''"。  在这个界面的底部附近,你将会看到"'''如果你的 .htaccess 文件是可写的,我们能够自动地执行,但是不是这样的,这些是你应该放到 [[WordPress:Glossary#.htaccess|.htaccess]]文件中的mod_rewrite规则。 点击这个区并且安装CTRL + a设置所有内容。'''"  这意味着,你自己需要执行一些额外的操作。  在子面板底部的文本框,WordPress显示几行与你在上面规定的Permalink结构有关的[[WordPress:Glossary#mod_rewrite|rewrite]]规则。  你需要动手将这个文本框中的所有内容复制到你的[[WordPress:Glossary#.htaccess|.htaccess]]文件,使得你的新的Permalinks能够运行。


:'''Note''':  If you're writing your [[WordPress:Glossary#.htaccess|.htaccess]] file on your own local computer, remember, some operating systems do not allow the creation of a file named "<code>.htaccess</code>" because of the initial dot ("'''<code>.</code>'''"). You can always name the file without the initial dot or with a standard extension (e.g. "<code>htaccess.txt</code>").  Once the file is uploaded to your weblog's directory, rename it with your [[WordPress:Glossary#FTP|FTP]] software. Most [[WordPress:FTP Clients]] should provide you a way to rename filesthis.
:'''Note''':  If you're writing your [[WordPress:Glossary#.htaccess|.htaccess]] file on your own local computer, remember, some operating systems do not allow the creation of a file named "<code>.htaccess</code>" because of the initial dot ("'''<code>.</code>'''"). You can always name the file without the initial dot or with a standard extension (e.g. "<code>htaccess.txt</code>").  Once the file is uploaded to your weblog's directory, rename it with your [[WordPress:Glossary#FTP|FTP]] software. Most [[WordPress:FTP Clients]] should provide you a way to rename filesthis.
:'''注''':  如果你在你的本地电脑上编写你的[[WordPress:Glossary#.htaccess|.htaccess]],记住,有的操作系统,不运行,创建名称为"<code>.htaccess</code>"的文件,就是因为文件名的开头带有点号("'''<code>.</code>'''")。 你可以在命名文件的时候,不要带上点号,或者给文件加上标准的扩展名(例如"<code>htaccess.txt</code>")。  文件上传到你的网络日志目录后,使用你的[[WordPress:Glossary#FTP|FTP]]软件重新命名文件。 大多数[[WordPress:FTP Clients|FTP Clients]]会向你提供一种方式重新命名文件。


:'''Also Note''':  Files that begin with a dot ("'''<code>.</code>'''") like "<code>.htaccess</code>" are hidden on most servers by default.  Consult the userguide or FAQ of the FTP software you use to find out how to have the software display these hidden files, and also how to use the software to change file permissions, rename files, etc.  For more information on all of this see [[WordPress:Changing File Permissions]].
:'''Also Note''':  Files that begin with a dot ("'''<code>.</code>'''") like "<code>.htaccess</code>" are hidden on most servers by default.  Consult the userguide or FAQ of the FTP software you use to find out how to have the software display these hidden files, and also how to use the software to change file permissions, rename files, etc.  For more information on all of this see [[WordPress:Changing File Permissions]].
end of comment out  -->
end of comment out  -->
:'''也注意''':  对于以点号("'''<code>.</code>'''")如"<code>.htaccess</code>"开始的文件,在大多数服务器上,都是默认隐藏的。  更多关于这方面的信息,请看看[[WordPress:Changing File Permissions|更改文件权限]]。
comment out的结尾  -->
===Save Changes===
===Save Changes===
:Click the '''Save Changes''' button to ensure any changes you have made to your Settings are saved to your database.  Once you click the button, a confirmation text box will appear at the top of the page telling you your settings have been saved.
:Click the '''Save Changes''' button to ensure any changes you have made to your Settings are saved to your database.  Once you click the button, a confirmation text box will appear at the top of the page telling you your settings have been saved.
第46行: 第92行:


Back to [[WordPress:Administration Panels]].
Back to [[WordPress:Administration Panels]].
===保存更改===
;点击'''保存更改'''按钮,确保你对设置所作的个更改保存在你的数据库中。  你点击按钮后,在网页的顶上放会出现确认框,通知你,你的设置已经得到了保存。
返回到[[WordPress:Administration Panels|管理面板]]。

2008年8月8日 (五) 14:24的最新版本

Settings → Permalinks[ ]

By default WordPress uses web URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links.

设置 → Permalinks[ ]

默认情况下,WordPress使用的网络URLs,有问号和许多数字,但是WordPress给你提供一个机会来为你的permalinks和archives创建一个自定义的URL结构。 这可以提高美感,用处和你的链接的向前兼容性。

For a more in depth description of the way this structure is specified, see the WordPress:Using Permalinks article. For an introduction to Permalinks, read the Pretty Permalinks section of WordPress:Introduction to Blogging.

640px|right|Settings Permalinks SubPanel


Back to WordPress:Administration Panels.


关于这个结构的更深入的描述,请看看文章使用Permalinks。 关于Permalinks的介绍,请阅读博客介绍中的Pretty Permalinks部分。

640px|right|设置 Permalinks 子面板


返回到管理面板


Customize Permalink Structure[ ]

A number of tags are available, and here are some examples to get you started.

Common settings
Check one of the radio buttons corresponding to the correct Permalink Structure for your blog.

自定义 Permalink 结构[ ]

拥有的标签,这里有些例子,帮你开始。

;普通设置: 选择一个单选按钮,与你的博客的正确的Permalink结构相应。

  • Default - An example of the default structure is http://www.sample.com/?p=123
  • Day and name - An example of the day and name based structure is http://www.sample.com/2008/03/31/sample-post/
  • Month and name - An example of the monthe and name based structure is http://www.sample.com/2008/03/sample-post/
  • Numeric - An example of the numeric structure is http://www.sample.com/archives/123
  • 默认 –默认结构的一个例子,在http://www.sample.com/?p=123
  • 星期和名称 –星期和名称为基础的结构是http://www.sample.com/2008/03/31/sample-post/
  • 月份和名称 –月份和名称为基础的结构是http://www.sample.com/2008/03/sample-post/
  • 数字的 –数字的结构的一个例子,是http://www.sample.com/archives/123
  • 自定义结构 – 这个框,规定了你想要使用的自定义结构。 一个例子是/archives/%year%/%monthnum%/%day%/%postname%/。 看看使用Permalinks文章,看看关于Permalink 结构标签的深入讨论。
Optional
You may enter custom bases for your category and tag URLs here. For example, using /topics/ as your category base would make your category links like http://example.org/topics/uncategorized/. If you leave these blank the defaults will be used. Again, see the WordPress:Using Permalinks article for further discussion of Permalink Structure Tags.
  • Category base - Enter a custom prefix for your category URLs here.
  • Tag base - Enter a custom prefix for your tag URLs here.


;可选择的:你可以为类别和标签,在这里输入自定义基础。 例如,使用/topics/作为你的类别基础,会使你的类别链接看起来像http://example.org/topics/uncategorized/。 如果你将这些保留为空白,就会使用默认设置。 再次看看使用Permalinks文章, Permalink 结构标签的深入讨论。

  • 类别基础 –在这里为你的类别URLs输入自定义的前缀。
  • 标签基础 –在这里为你的标签URLs输入自定义的前缀。


也注意: 对于以点号(".")如".htaccess"开始的文件,在大多数服务器上,都是默认隐藏的。 更多关于这方面的信息,请看看更改文件权限

comment out的结尾 -->


Save Changes[ ]

Click the Save Changes button to ensure any changes you have made to your Settings are saved to your database. Once you click the button, a confirmation text box will appear at the top of the page telling you your settings have been saved.


Back to WordPress:Administration Panels.

保存更改[ ]

;点击保存更改按钮,确保你对设置所作的个更改保存在你的数据库中。 你点击按钮后,在网页的顶上放会出现确认框,通知你,你的设置已经得到了保存。


返回到管理面板