title: Wordpress categories redirecting to index.php
body: <p>Hello and good day to all!</p>
  
  <p>I started developing a wordpress theme from scratch, and everything seemed to be going well so far. But now I have a small problem. When I click on one of the Post categories in my default wp sidebar, I get redirected to index.php, despite the fact that the link is referencing the exact name of the category.</p>
  
  <p>How can I fix that, so when I click a category, I get the posts that are in that category?</p>
  
  <p>My guess is that this must be a problem with my archive.php page or something like that. I am new to all of this, so please excuse my question.</p>
  
  <p>Big thanks in advance!</p>