title: Why is jQuery ajax get returning a 404 Not found error even while the file exists on the server?
body: <p>When I access the following url via browser it works fine returning JSON data,</p>
  
  <p><a href="http://azcvoices.com/topcompanies/wp-content/themes/topcompanies/get.php?p=33" rel="nofollow noreferrer">http://azcvoices.com/topcompanies/wp-content/themes/topcompanies/get.php?p=33</a></p>
  
  <p>When jquery does an ajax <code>get</code> it is failing with a <code>404 Not found error</code> with the following code even when the file <code>get.php</code> truly exists on the server as mentioned above,</p>
  
  <pre><code>$.ajax( 
  {
      url: "http://azcvoices.com/topcompanies/wp-content/themes/topcompanies/get.php",
      type: "GET",
      data: {p: postId}
  })
  .done(function(post) {
  })
  .fail(function() { alert("error"); })
  .always(function() {  });
  </code></pre>
  
  <p>You may see the 404 error below,
  <img src="https://i.stack.imgur.com/RVdgY.png" alt="enter image description here"></p>
  
  <p>Currently the .htaccess has the following in it,</p>
  
  <pre><code>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).*) $1 [L]
  RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
  RewriteRule . index.php [L]
  </code></pre>
  
  <p>Could this be causing the issue?</p>
  
  <p>The same demo on the test server at,
  <a href="http://peplamb.com/workspace/azcentral.com/spotlight-stories/" rel="nofollow noreferrer">http://peplamb.com/workspace/azcentral.com/spotlight-stories/</a>
  works fine, but the same code is failing at <a href="http://azcvoices.com/topcompanies/spotlight-stories/" rel="nofollow noreferrer">http://azcvoices.com/topcompanies/spotlight-stories/</a></p>
  
  <p>What could be the issue? Any help is greatly appreciated!</p>