How to prevent viewing the users page?

How to prevent users to access the URLs of the form:
site.ru/category/рубрика/ - root page headings
site.ru/2017/05/ archives records
We need to identify the page as non-existent
June 26th 19 at 14:12
1 answer
June 26th 19 at 14:14
To do the rewrite/redirect is using .htaccess ?

Find more questions by tags WordPress