Wordpress's default log URL format is usually: http://wp-site.cn /? P = POSTID. This URL is dynamic, which is not conducive to search engines collecting your logs. Therefore, we can modify the permanent link to make your blog address static.
The premise is that your blog host must support Mod Rewrite.
Create a new 1. htaccess file in the local notepad, upload it to the root directory of your blog, and change it to. htaccess to set the attribute to 644.
Log on to the wordpress background and "set" Options → "permanent link" Permalink.
Enter the permanent link format in "Custom structure.
Commonly used methods include:
Style: http://www.yourwebsite.com/123.html
Statement:/export post_id).html
Style: http://www.yourwebsite.com/archives/123.html
Writing Method:/archives/paipost_id).html
Style: http://www.yourwebsite.com/2007/09/16/post-name.html
Statement:/% year %/% monthnum %/% day %/Your postname).html
Style: http://www.yourwebsite.com/2007/03/post-name.html
Statement:/% year %/% monthnum %/Your postname).html
Style: http://www.yourwebsite.com/category/post-name.html
Statement:/% category %/Your postname).html
Style: http://www.yourwebsite.com/archives/post-name.html
Write method:/archive/export postnameapps.html
Style: http://www.yourwebsite.com/post-name.html
Statement:/export postname).html
Note:
% Year % the year when the log is published, 4 digits, such as: 2004
% Monthnum % the log published month, two digits, for example, 05
% Day % the day of the month when the log is published, two digits, for example: 28
% Hour % The "hour" in the log release time, two digits, such as: 15
% Minute % The "minute" in the log release time, two digits, such as: 43
% Second in log release time, two digits, for example: 33
% Postname % a string of processed log titles. For example, the log title Is "This Is A Great Post !", % Postname % indicates "this-is-a-great-post"
% Post_id % unique log ID
% Category of the log
% Author % log author
Note: The set permanent link takes effect after a while.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.