How to solve "404 Not Found" after modifying the fixed link structure in WordPress?

I recently built a blog site with WordPress. As a novice, I will always encounter this and that problem. No, when I want to modify the structure of the fixed link, after updating and opening the article, it becomes this kind of ghost. And even if the theme is reinstalled, it doesn't seem to be solved (it seems to be because I don't know that it is my operation problem)

insert image description here

The default fixed link structure is very long, but modification will encounter 404 inaccessible situation, how to solve it?

insert image description here

I also searched for this method on the Internet, but the big guys said it is more complicated. A novice like me who has no foundation for building a website doesn’t know what those things are (sorry, it’s not a problem with the big guys, but I’m too bad to understand).

Then I think there must be some partners who can't understand it like me. So I will write down my operation steps according to the solution I found. It can be regarded as a devotion to friends who have no foundation like me by borrowing the flowers of the senior masters of the website. Hope to help everyone.

Solution

First of all, we have modified the structure of the fixed link, and then refreshed and encountered a 404 inaccessible situation. So what to do now? Open the pagoda background (oh, I forgot to say, I manage the server and domain name through the pagoda. Anyway, it is the pagoda background), and then click the website – settings

insert image description here
Then copy the code below

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

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

Then paste it into the configuration file and save it. After completing this step, refresh our website, and then open the article link to open and access it normally.

insert image description here

Guess you like

Origin blog.csdn.net/dnmjun/article/details/130270319