Website Keeps Redirecting to Homepage

[ad_1]

I tested this out and this is what I found:

Your WordPress site is configured to use www subdomain, and all URLs, including the example URL you gave, work without any redirection.

The redirection ONLY occurs with URLs without the www.

So, using your example this works and displays the category archive page:

But this doesn’t work (ie gets redirected to the homepage):

Since WordPress is only aware of the www version it’s configured to use, you need to check your webserver configuration or wherever you’re doing the redirection from the root domain example.com to www.example.com. That’s where the problem lies, and that’s where a solution might be found.

Hey buddy, you’re right. I tried it with the www and it worked. Thank you so much!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer