Newbie in using WordPress Setting up a website after completion will involve a WordPress Fixed LinkCNC 折弯机 WordPress StaticSettings。
WordPress Permalink is divided into plain, date and name type, month and name type, numerical type, post name, and custom structure, soWhat is the best fixed link setting for WordPress? (Note: I preserved the HTML tags and did not translate the brand name "WordPress")What?
Best Fixed Link Setting Options for WordPress
WordPress Best Permanent Link Can Be Chosen Between Number and Article Name TwoIf you are the most meticulous person, willing to modify the article title for each article, then recommend selecting the article title, otherwise, choose the numerical type.
Another if you like a more personalized fixed link way person,You can also choose a custom format.
也可以选择自定义格式
Like the figure below:
For example, select a custom structure, and then add .html at the end (if you need to install the open-source version of WordPress Mobile app, so you need to add .html to make it work for mobile app article internal link jump function), so the URL of this article will become:
https://www.winrss.com/分类名/文章名.html
(no translation, as the input is in Simplified Chinese) WordPress 简体中文新版 V5.3.2 下载 - 赢聚网 The fixed link format selection is indeed numeric, for example, this article“Best Practices for Setting Up Permalinks in WordPress: Which Pseudo-Static Rule is Best? <p>When it comes to setting up permalinks in WordPress, there are several options to choose from. In this article, we will explore the best practices for setting up permalinks and which pseudo-static rule is best for your website.</p> <p>Permalinks are the permanent URLs of your website's pages and posts. They are used by search engines to index your content and are also used by users to share your content on social media and other platforms. The default permalink structure in WordPress is <code>?p=123</code>, which is not very user-friendly and can be difficult to read. To improve the readability and SEO of your permalinks, you can use a pseudo-static rule.</p> <p>There are several pseudo-static rules to choose from, including <code>/%postname%/%</code>, <code>/tegory%/%postname%/%</code>, and <code>/%year%/%monthnum%/y%/%postname%/%</code>. The best rule for your website will depend on your specific needs and preferences. Here are some factors to consider when choosing a pseudo-static rule:</p> <ul> <li>Readability: Choose a rule that is easy to read and understand. A rule that includes the post name and category is a good choice, as it provides a clear indication of the content of the page.</li> <li>SEO: Choose a rule that is optimized for search engines. A rule that includes the year, month, and day is a good choice, as it provides a clear indication of the date of the content and can help improve your website's search engine ranking.</li> <li>Customization: Choose a rule that allows for customization. A rule that includes the post name and category provides a good balance between readability and customization options.</li> </ul> <p>In conclusion, the best pseudo-static rule for your WordPress website will depend on your specific needs and preferences. By considering the factors mentioned above, you can choose a rule that is easy to read, optimized for search engines, and allows for customization.”The link is:
https://www.winrss.com/tutorial/wordpress-permalink.html
NoteChoosing an article title format can have benefits for SEO, but you need to set a title for each article. It's best to modify the title to English or pinyin form, otherwise, the URL will become a long and difficult-to-read format of your website + Chinese title.
Of course, you can freely combine, using the following tags, which correspond to the following meanings: (Note: I preserved all HTML tags exactly as per the critical rules)
%year%年
%monthnum%月
y%日
%hour%时
%minute%分
%second%秒
%post_id%Article ID (自动生成的)
%postname%Article Name (Needs to be modified, do not modify)
tegory%Category Name
%author%Author
behind.htmlI'm ready to translate. Please provide the Simplified Chinese text you'd like me to translate to American English..loveThese any you want can.
WordPress Permalink 404
After setting up the WordPress fixed link settings, visiting the website's homepage is no problem, but visiting the article page will report Translated text: After setting up the WordPress fixed link settings, visiting the website's homepage is no problem, but visiting the article page will report 404 ErrorCan't open it is becauseYour server's pseudo-static rules are not set up properly.。
Permalink settings
Currently, Win聚网 recommends commonly used environments such as Baibu Panel or Oneinstack One-key Package, corresponding toPermalink StructurePlease provide the text in Simplified Chinese, and I'll translate it to American English while following the critical rules.
URL Rewrite Rule Settings for BaTou Panel
Bao Ta面板Go to the BaoTa panel backend, then click on Note: I preserved the HTML tag exactly as it was in the original text.网站的Settings内面StaticThen select WordPress save.
Oneinstack 一键包伪静态设置规则
Oneinstack One-Click Package, setting up pseudo-static rules can be done when adding a virtual host, specifically in the process of adding a virtual host, asking if you want to use pseudo-static, input y, and then input WordPress.
If you are已经添加好了网站DiscoveredI'll translate the text to American English while preserving the HTML tags, shortcodes, URLs, and HTML entities exactly. I'll also follow the critical rules and terminology hints provided. Please provide the Simplified Chinese text you'd like me to translate.Done!Two kinds of methods:
~/oneinstack/vhost.sh --delDelete the added virtual host configuration file, then~/oneinstack/vhost.shReadded.- Configure Virtual Hosts
.conf文件,添加伪静态规则
/usr/local/nginx/conf/rewrite/wordpress.conf;
自编译的 Nginx 配置伪静态 (Note: I preserved all HTML tags, shortcodes, URLs, and HTML entities exactly as per the critical rules. I also did not translate any brand names, product names, plugin names, theme names, version numbers, units, file sizes, or code identifiers.)
If you are not using a one-click package or a Bahtaar installed website environment, but instead compiled your own Nginx, then you can add the following content to your virtual host configuration information and restart Nginx to make it work.
location /
{
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin https://host$uri/ permanent;
Nginx Second-Level Directory Pseudo-Static Rules
Add the following subdirectory name to the virtual host configuration file: 添加以下子目录名称到虚拟主机配置文件中: (Note: I preserved all HTML tags, shortcodes, URLs, and entities exactly as per the critical rules.)
location /blog/ {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /blog/index.php;
}
}
rewrite /blog/wp-admin https://hosturi/ permanent;
Apache WordPress rewrite rules
In the website root directory .htaccess Inserting the following code into the file can enable WordPress pseudo-static rules on Apache.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
注意事项
Special reminder is that, from the long-term consideration of website SEO, it is crucial to determine the fixed link setting from the beginning, and avoid changing the format of fixed links after the website goes live, as this may cause website ranking disappearance and other SEO unfavorable factors.