I have created a wordpress plugin that actually works fine on one site Wordpress.
However when testing it on WPMU with subdomain, I recieve a 404 Not Found error.

The strange factor would be that the submissions are loaded despite the fact that I recieve the mistake message - however the submissions are never displayed.

You can observe a screenshot here:

The jQuery code appears like this:

  jQuery.post("/wp-content/plugins/wp-eventcal/eventcal_jquery.php", { instance: 'getEvent', eventID: eventID },
    alert(event); // For testing - never fires

  }, "json");

Any tips to the way i can deal with this?


# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

# END WordPress

This issue is really because your eventcal_jquery.php isn't incorporated towards the Wordpress framework, then when it known as, wordpress returns 404. Just include header('HTTP/1.1 200 OK'); after including wordpress-blog-header.php inside your eventcal_jquery.php