1

This is probably a face palm question. On Wordpress 4.4. the link

http://example.com/blog

...redirects to:

http://example.com/category/general

...ie. it's redirecting to archive.php and displaying all posts in the category 'general'.

And I cannot figure out -why-. Is there a way to get a 'trace' of the redirections?

The .htaccess is the standard WP code. I have no redirection plug-ins. I have no redirect function calls in functions.php. I have disabled all plug-ins but Yoast 3.11.

Any ideas?

  • Not a face palm question at all. When you say "it's redirecting to archive.php" can you elaborate? Archive.php is a page template, not a destination URL. There may be multiple issues at work here, confusing your path to a solution. – jdm2112 Mar 28 '16 at 18:18
  • 'general' is the default category, isn't it? – Tung Du Mar 28 '16 at 19:30
  • @TungDu Yes, 'general' is the default category. – jchwebdev Mar 28 '16 at 19:40
  • @jdm2112 Again, when the visitor types example.com/blog (which is a Page with the permalink 'blog'), instead the visitor goes to example.com/category/general. So somewhere /blog is being redirected to use the archive template instead of the -Page- I created. I want to know how to figure out -why-. – jchwebdev Mar 28 '16 at 19:41
  • you can trace first from redirect_canonical core.trac.wordpress.org/browser/tags/4.4.2/src/wp-includes/… – Jevuska Mar 29 '16 at 0:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.