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.com.br/emp-digital/ and not https://lucrebem.com.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?
/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.