今天维护的时候,发现本站的url中还包含category,导致网站层级较多,不符合seo要求的扁平化。
解决办法是安装No Category Base (WPML)插件,之所以选择用插件的方式而不是修改代码,是因为该插件在去掉category的同时,还会做好301跳转,将旧链接301到新的链接。
在wordpress后台搜索并安装该插件即可。
未去掉category前的url示例:
https://www.02405.com/category/program/php/page/2
去掉category后的url示例:
https://www.02405.com/program/php/page/2
301检测:
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/8130
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_7886.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57