Wordpress Optimises Hypocratic SEO

WordPress is a CMS management system, which means that WordPress articles, pages and archived pages are generated from data in the database by program. While WordPress has thousands of pages, we have only one access point to these pages, i.e. “index.php” for root directories. When we visit a page, it’s actually “inxdex.php”, and then this file takes data from the database, generates pages, and ultimately sends them to us according to global variables and some parameters on the page.

Why set up a pseudo-static?

The URL address for the WordPress article page is in the default installation environment https://exaple.com/index.php?p=123, in this URL, example.com is our domain name, “index.php” is the WordPress page entry file that we’re talking about above.?p=123 is the parameter of this URL, where 123 For the page ID, index.php is based on this page ID from WordPress Database, and you can generate the page that you want to show us.

How do I get rid of it?

To make the URL look better, to be more friendly with SEO, many friends would like to take this index.php off. How do we do it? It’s simple, at WordPress’s.Settings > Fixed LinkSelect in the settings other than ‘PARK Soo-soo.The other options are all right, save them and then we’ll start a pseudo-static setting for WordPress.

In order to make URL more semantic, we suggest the option “Article Name‘url structure, if you do not want to have the URL appear in Chinese, use what we developed Wenprise Pinyin Slug Plugin automatically converts Chinese from URL to spelling or English name.

Support for pseudostatics from servers such as Apache, Nginx and IIS

When fixed-link settings are made, friends may find that their website cannot be opened except for the first page because your server is not configured to redirect (i.e., pseudo static support) URLs, and we need to open URLs for the server.

Nginx Hypocrisy Static Rule

According to what we know, most WordPress sites are now using Nginx as a Web server, adding pseudo-static settings for Nginx is very simple, finding your virtual host profile, adding the following Nginx rules and then running nginx -s reload Reload the Nginx configuration on it.

location / {
    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;
}

或者宝塔面部提供默认配置

location /
{
try_files $uri $uri/ /index.php?$args;
}

rewrite /wp-admin$ $scheme://$host$uri/ permanent;

IIS Hypocrisy Static Rules

You don’t have many friends with the IIS as WordPress’ Web server? So, let’s not talk about setting it up so that if you can use it, put here a reference link to the IIS URL re-directional settings.

Apache Hypocrisy Static Rule

Most Apache servers support the use of .htaaccess files to set re-directional rules, as long as your server supports .htacees files and when you set WordPress’s fixed link, WordPress automatically generates or updates this file without much d setting. If your Apache server does not support …htaaccess, find administrator to provide support or refer to the following connection settings.

How to set up htaccess files in Apache settings

Essentially, pro-simplistic settings are one of the basic repairs to each WordPress server. URL pseudo-static is also one of the essential things that WordPress SEO needs to do, and every WordPress site that has a quest for it does.

未经允许不得转载:萌萌Apprentissage » Wordpress Optimises Hypocratic SEO

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本