PHP Query causes 404 error
-
I have been using the code below to post blog posts.
[ Moderator note: please wrap code in backticks or use the code button. Don’t use
strongas it mangles the code. ]<?php require('../path/wp-blog-header.php'); ?> <?php query_posts('cat=35'); ?> <?php while (have_posts()) : the_post(); ?> <a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile;?>I noticed that my site was not being indexed by google. So I used the web testing tools at http://www.webpagetest.org/
The test returns a 404 code which means Google thinks the page do not exist.
I also noticed that my other sites which use the same code do not get 404 errors and are indexed by Google.
The problem is now happening when I put the code on plain page
All the blog posts exist and are displayed properly and the website itself exists and loads quickly
What is causing the 404 error ?
Please help
The topic ‘PHP Query causes 404 error’ is closed to new replies.