编辑“WordPress:Permalinks Options SubPanel”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第4行: | 第4行: | ||
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]]. | ||
[[WordPress:Image:options-permalinks.png|640px|right|Settings Permalinks SubPanel]] | [[WordPress:Image:options-permalinks.png|640px|right|Settings Permalinks SubPanel]] | ||
第15行: | 第9行: | ||
Back to [[WordPress:Administration Panels]]. | Back to [[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. | ||
第31行: | 第17行: | ||
:*'''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>''' | ||
:*'''Day and name''' - An example of the day and name based structure is '''<nowiki>http://www.sample.com/2008/03/31/sample-post/</nowiki>''' | :*'''Day and name''' - An example of the day and name based structure is '''<nowiki>http://www.sample.com/2008/03/31/sample-post/</nowiki>''' | ||
第43行: | 第23行: | ||
:*'''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>''' | ||
:*'''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]]. | ||
;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. | ||
第62行: | 第32行: | ||
<!-- commenting out for now | <!-- commenting out for now | ||
===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]]. | ||
:*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. | ||
:*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. | ||
:'''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. | ||
:'''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 --> | ||
===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. | ||
Back to [[WordPress:Administration Panels]]. | Back to [[WordPress:Administration Panels]]. | ||