I tried your suggestion of absolute path. URL file-access is disabled though so that results in a PHP error. Also I am using a relative path on the php files without query strings. In the interests of the site not being totally non-functional I have removed the query string entirely now and replaced them with individual files for each link - except for the link to the contact form. You can click on that if you want to recreate this error. I do need a generic solution for some of the functionality which the menu.swf file uses. Plus it used to be nice and elegant. This all used to work...I am mystified at how I managed to break it.
My Javascript is attached. Here is the PHP I am using. This is bloader.php which Ajax comes back with a 404 on
Code:
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<?PHP require_once('blog/wp-blog-header.php');?>
<?PHP
$name = $_GET['name'];
query_posts('pagename='.$name);while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(''); ?>
<?php endwhile; ?>
And here is about.php which works, and is exactly the same. It just doesn't require a query string.
Code:
<?PHP require_once('blog/wp-blog-header.php'); ?>
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<?PHP $name = "about";
query_posts('pagename='.$name);while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(''); ?>
<?php endwhile; ?>
Bookmarks