Start to do SEO optimization, of course, tied to fixed links, WordPress provides a variety of types of link form:
1 23 4 5 6 7 |
/ % Year % / % Monthnum % / % Day % / % Postname % / / % Year % / % Monthnum % / % Postname % / / % Year % / % Monthnum % / % Day % / % Postname % . HTML / % Year % / % Monthnum % / % Postname % . HTML / % category % / % Postname % . HTML / % post_id % . HTML / % Postname % / |
I chose/%postname% pseudo-static, although now seems to be no different, but it is the next bar. After modifying the permalink, there is a 404 error accessing the article.
WordPress official gives a new way to open the fixed link, very simple. Paste the following code into the Nginx conf configuration file.
1 2 3 4 |
Location / { Try _Files$URI$uri//index. PHP ? $ args ; } rewrite / WP - Admin $ $ Scheme : //$host $uri/permanent; |
You can then restart the nginx to have normal access to the!!!
Original address: http://wanshicheng.org/nginx%E9%85%8D%E7%BD%AErestful%E9%A3%8E%E6%A0%BCurl/
The above describes the Nginx configuration restful URL, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.