WordPress change permalink,page return 404

WordPress can not access the page properly after setting a permalinks.

Page return 404.

After searching for information, we can know the solution. The method is as follows, only for nignx:

1.edit nginx conf

# vim /usr/local/nginx/conf/nginx.conf

2. add in server

location / {
    if (!-e $request_filename) {
        rewrite (.*) /index.php;

3.restart nginx

# service nginx restart

Add a Comment

Your email address will not be published. Required fields are marked *