What Is a Permalink?

Permalink is a permanent URL for blog logs, categories, and other blog content lists.

wordpress permalink

This entry lacks an overview map . Supplementing related content makes the entry more complete and can be upgraded quickly. Come on!
Permalink is a permanent URL for blog logs, categories, and other blog content lists.
Chinese name
wordpress permalink
Use
Permalink links to your articles
Should be
Permanent
Types of
Default form (unsightly)
Other blog hosts can use permalinks to link to your articles, or you can send a link to a post in email. The URL of all logs should be permanent and fixed-this is called a permalink.
Default form (unsightly)
For example: http: // example .com /? P = N where N is the Post ID number. It can be used in all server environments, but this form of URL does not look good.
mod_
Enter wp backstage-> settings permalink-> custom structure
Here are a few structures for reference
% year % year of post, four digits
% monthnum% month the post was posted
% day% date of post
% hour% time of post
% minute% The time in minutes the post was posted
% second% The time in seconds the post was posted
% postname%
The reason why Chinese TAG tag links and Chinese alias category directory links cannot be opened is that WordPress does not support Chinese encoding. We need to edit the WordPress source file so that it supports Chinese encoding, that is, UTF-8 and GBK encoding.
Open and edit the wp-include / class-wp.php file;
<1>
$ pathinfo = $ _SERVER ['PATH_INFO'];
Replaced with
$ pathinfo = mb_convert_encoding ($ _ SERVER ['PATH_INFO'], "UTF-8", "GBK");
<2>
$ req_uri = $ _SERVER ['REQUEST_URI']; [/ php]
Replaced with
$ req_uri = mb_convert_encoding ($ _ SERVER ['REQUEST_URI'], "UTF-8", "GBK");
Detailed setting scheme, the source file is available for download, please refer to the following reference for graphic tutorials
Several common problems
If it is /%
Under the Linux host, after Wordpress is fixedly connected, there may be a 404 error page!
The easiest way is as follows:
Create a TXT article and copy the code below!
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ index \ .php $ [L]
RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteRule. /Index.php [L]
</ IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^ index \ .php $ [L]
RewriteCond% {REQUEST_FILENAME}! -F
RewriteCond% {REQUEST_FILENAME}! -D
RewriteRule. /Index.php [L]
</ IfModule>
# END WordPress
Then change the TXT file name
Change the extension with .htaccess?
Upload this file to the WordPress root directory
Then change the permissions to 777. Is this OK?
Really unclear
You can refer to the following information!

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?