I was working on a theme. I created category.php for category view and 404.php for error page. It worked on my local server.
But in the main server it is not working. The main server use wordpress multisite and I had to enable the theme through network admin. I have also created custom single page and those works, but the category page isn't working. It always redirect to frontpage. I also have a front-page.php in my theme. I don't understand why this is happening as it is violating template hierarchy.
So, it might be something related to multisite. I don't know much about multistie. Thanks in advance for your help.