📌  相关文章
📜  为什么我的网站会重定向到主页面 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:25.092000             🧑  作者: Mango

代码示例1
Sometimes, changes made to the .htaccess file can cause WordPress to redirect all links back to the home page instead of showing the page requested. In some cases, resetting the permalinks within WordPress will resolve this issue.

To reset the permalinks for your WordPress installation:

1. Log into the WordPress Dashboard.
2. In the side panel, go to Settings > Permalinks.
3. Make note of the current setting. (If you are using a custom structure, copy or save the custom structure somewhere.)
4. Select the Default option.
5. Click Save Changes.
6. Now select the previous setting you had before Default was selected.
7. Click Save Changes.
This will reset the permalinks and will most likely fix the issue.