Solution:
The default WordPress mod_rewrite
rules look something like this:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
In essence, this says “pass all requests through WordPress, unless the request corresponds to a real file or directory.” So, if you’re seeing a WordPress delivered page when you expect the output of a non-WordPress script:
- Your rewrite rules differ from the default; paste them for help debugging. Or,
- The file may not exist where you think it does.