如何在wordpress中将所有网址如“example.com/post-name”重定向到“example.com/category-name/post-name”,需要任何插件或htaccess代码
为什么不试试谷歌?
https://www.google.com/search?hl=en&site=webhp&source=hp&q=wp+redirect+plugin&oq=wp+redirect+pl&gs_l=hp.3.0.0j0i22i30l9.103657.106968.0.108274.14.14.0.0.0.0.356.2335.4j5j2j3.14.0....0...1c.1.30.hp..5.9.954.MwQ1Say9Ifs
无论如何,这有助于您实现您想要的simple-301-redirects插件为您的wordpress网站 . 如果您只有2或3个帖子,则使用 .htaccess 文件而不是安装此插件 . 但请确保使用301永久重定向,这也可以帮助您转移特定页面的排名 .
.htaccess
Edit: 确保您已启用 category from parmalinks
category from parmalinks
1 回答
为什么不试试谷歌?
https://www.google.com/search?hl=en&site=webhp&source=hp&q=wp+redirect+plugin&oq=wp+redirect+pl&gs_l=hp.3.0.0j0i22i30l9.103657.106968.0.108274.14.14.0.0.0.0.356.2335.4j5j2j3.14.0....0...1c.1.30.hp..5.9.954.MwQ1Say9Ifs
无论如何,这有助于您实现您想要的simple-301-redirects插件为您的wordpress网站 . 如果您只有2或3个帖子,则使用
.htaccess
文件而不是安装此插件 . 但请确保使用301永久重定向,这也可以帮助您转移特定页面的排名 .Edit: 确保您已启用
category from parmalinks