I realize this is a bit of a strange question, but to put a long story short, we have a few WordPress installs whose files are loaded through a symbolic link (the symlink is in the document root whereas WordPress is not).
For this to work, I need to have a list of all WordPress files that are usually loaded directly from the web browser (either by the user or through AJAX), such as: index.php
, wp-login.php
, (all theme files)* …
An example of files that are not loaded directly: wp-load.php
, wp-config.php
, wp-blog-header.php
…
[*] Theme files are an exception; they actually exist in the document root.
Edit: You might wonder, what is the point of this? It is so that we can cut down on the extra files on the server; it’s useless to have thousands of identical files from each WordPress website. The wp-content
directory has been left there since it’s what changes between websites. Am I aware of the consequences of such a set up? I believe I am.
Edit 2:
Here is a list of entry points based on
require( 'wp-load.php' );
https://github.com/szepeviktor/WPHW/blob/master/wp-entry-points.md
And a Trac ticket about their deficiencies
https://core.trac.wordpress.org/ticket/28364
So far, the following fixes my issue: