admin管理员组文章数量:1245626
Check out this image:
This is twenty twenty theme, a default theme. I started facing the problem with a non-default theme, so I switched over to this other theme just for testing, same thing. What's happening is that when I hover the mouse on the category name "Empreendedorismo Digital", my slug url, or should I say permanlink, displays a "category" word right before the category name in the url, and this shouldn't happen. Because of this, google is treating my website categories page as duplicated content. The actual url should be / and not /
I've already changed my htaccess
file to the default htaccess
that comes with wordpress, cleared all the cache, restarted the entire VPS and nothing happened. As you can see, I also moved to a default theme: same thing. I've checked permanlinks page in wordpress settings page and it's normal, my custom structure is /%category%/%postname%/
, meaning that it should display /categoryname/postname
, also there's nothing in the optional fields. Why is wordpress adding the category
word before my actual category name in my url?
Check out this image:
This is twenty twenty theme, a default theme. I started facing the problem with a non-default theme, so I switched over to this other theme just for testing, same thing. What's happening is that when I hover the mouse on the category name "Empreendedorismo Digital", my slug url, or should I say permanlink, displays a "category" word right before the category name in the url, and this shouldn't happen. Because of this, google is treating my website categories page as duplicated content. The actual url should be https://lucrebem.br/emp-digital/ and not https://lucrebem.br/category/emp-digital/
I've already changed my htaccess
file to the default htaccess
that comes with wordpress, cleared all the cache, restarted the entire VPS and nothing happened. As you can see, I also moved to a default theme: same thing. I've checked permanlinks page in wordpress settings page and it's normal, my custom structure is /%category%/%postname%/
, meaning that it should display /categoryname/postname
, also there's nothing in the optional fields. Why is wordpress adding the category
word before my actual category name in my url?
1 Answer
Reset to default 0This should be a comment but I have not enough reputation yet, sorry for that... As Jacob said in his comment this is the normal behaviour. However this issue has already been discussed many times. Check this Q/A as an example: https://stackoverflow/questions/17798815/remove-category-tag-base-from-wordpress-url-without-a-plugin
本文标签:
版权声明:本文标题:url rewriting - Wordpress is adding "category" word before my actual category name in url (and this is unsolic 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740222282a2244043.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
/emp-digital/
is for a post with that name, or a category. Note that the custom permalink structure/%category%/%postname%/
is for posts. The posts will have the path/categoryname/postname
but if you view the category itself it has its own path with/category/
at the beginning. – Jacob Peattie Commented Sep 22, 2021 at 6:30