url rewrite

1. 在Apache的配置文件中找到“#LoadModule rewrite_module modules/mod_rewrite.so”

2. 在Apache的配置文件中查找“Directory”,将该标签下的“AllowOverride None”改为“AllowOverride All”,

3. 确定WordPress网站根目录下的“.htaccess”文件有可读写权限,



  • Make sure to end your structure with either %post_id% or %postname% (e.g./%year%/%monthnum%/%day%/%postname%/) so that each permalink points to an individual post.
The year of the post, four digits, for example 2004
Month of the year, for example 05
Day of the month, for example 28
Hour of the day, for example 15
Minute of the hour, for example 43
Second of the minute, for example 33
The unique ID # of the post, for example 423
A sanitized version of the title of the post (post slug field on Edit Post/Page panel). So “This Is A Great Post!” becomes this-is-a-great-post in the URI.
A sanitized version of the category name (category slug field on New/Edit Category panel). Nested sub-categories appear as nested directories in the URI.
A sanitized version of the author name.