The short answer is no, WordPress does not refer to any files outside of the main install folder.
When WordPress loads (via /wp-load.php), it sets the constant ABSPATH
to the current directory path and points all further includes relative to that.
However, since you are asking, there are some notable special cases:
- If you install WP in its own directory, you have to copy the
index.php
and.htaccess
file outside the WP directory to the parent directory. - WordPress checks if
wp-config.php
exists in its parent directory so you could also have that one outside of the main directory. - The wp-content, plugins, uploads and theme directory can be moved to pretty much anywhere.
These are all options and not default behavior. So the answer remains no.
Related Posts:
- How would you detect if WordPress is installed in a subdirectory (not root)?
- Can I install a new WordPress site inside a sub-directory of an existing WordPress site?
- google xml sitemap won’t work on directory install
- WordPress not handling subdirectory properly
- How to move a WordPress installation to a subdirectory
- How to replace a wordpress installation in root directory with another in a subdirectory?
- The right way to go about creating a WordPress site from a static site which has WordPress installs in its subdirectory
- Multisite Sub-directories Installation
- PHP – Move a file into a different folder on the server
- Compare 2 directories in windows
- get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
- Change upload directory for PDF files
- What’s the purpose of index.php in wp-content directory? [duplicate]
- How do I serve static content on same domain as WordPress
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- Can I change get_template_directory_uri()?
- Custom Post Type Archive in Sub Folder
- How to point my domain to a WordPress install in a sub-directory?
- Can I put my WordPress theme files in another folder?
- Multiple domains for multiple single installs
- WordPress within a subdirectory of another WordPress environment doesn’t work
- How to Create Hierarchical Directory for Nation Wide Mental Health Services
- Sub-domain or 2nd, temporary different domain?
- How to create new folder in wp-content root same like upload folder?
- How do I set up single sign on for multiple WP installs across the same domain?
- Why doesn’t WP_PLUGIN_DIR definition use DIRECTORY_SEPARATOR?
- How to copy one folder to another folder recursively
- issues including a file from a plugin directory
- Disable to create folders for every years and months in uploads folder
- local folder permissions vs chown — security considerations
- How is a student directory best handled in WordPress?
- Creating directory in uploads: mkdir vs wp_mkdir_p
- Cant get wordpress to work on subdirectory
- Two identical wp-includes directories on server
- What is the recommend directory in which I can upload a new library?
- Second wordpress installation on subdirectory
- Install theme on multiple domains
- Change multi-site installation from sub-domains to sub-directories
- How to create an Online Dictionary Using WordPress? [closed]
- Include file from higher level
- Is it good security advice to install wordpress in subdirectory but link to root?
- how to create a folder in wordpress
- Moving to directory creates path problems.. how to solve?
- wordpress blog in subdirectory or subdomain
- Accessing WordPress installation in its own directory at domain root
- Is there any way to allow a plugin to write over a previous version?
- Right permissions to WordPress directory
- Template Hierarchy tag-{slug}.php directory
- wp theme.. Could not create directory
- more than one upload directory?
- WP install in sub-dir white screen
- Change directory of javascript files
- Theme in wp-content but my index.php search theme files in root
- get_query_var not working for subdirectory
- How can I have nginx serve WordPress at /blog?
- WordPress installed in root, need second in subdirectory with different domain
- Subdomain redirects to subdirectory [closed]
- Correct folder permissions?
- How to make use of WP templates within a nested site structure?
- subdirectory install breaking existing links
- Plugins will only be installed with 777 on folder. Solution?
- How to create directory using username within theme
- 2 WordPress sites in 2 sibling folders on one domain
- WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
- Main WP page and subfolder WP with the same name. How to prioritize for main Wp
- Auto-create a post with last 10 images in WordPress directory
- Copy Folder to another Folder using WP Filesystem
- Unable to update WordPress or install plugins/themes
- Session Expired when WordPress Address (URL) and Site Address (URL) are different
- After changing wp from subdirectory to root I can’t preview any changes to a page or post
- Moved WordPress site to new server, directory permissions not working correctly
- Moving from one test to multiple final environments
- WordPress in a sub directory but not images
- Multisite installation on an existing single installation
- Should I install blog on subdomain or subdirectory?
- Hiding Directory Path
- Moving WP from /blog to root directory
- Should custom directories be created under the wp-content directory?
- Use of Folders within WordPress
- Folder keeps popping up in my public_html directory and overriding WordPress page structure
- Hosting my WordPress site out of a subdirectory
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- Theme file structure best practice
- Clean installation missing its /wp-content folder
- Path in dev server works; same path in prod server is broken
- What is wp-admin/meta for?
- What plugins create a directory on the root directory of WordPress? [closed]
- How can i shift my chosen posts to a subdirectory?
- Where to put robot.txt and sitemap.xml for wordpress installed in its own directory
- Automating WP application directory creation (domain name passed as a variable argument)
- How to disable directory files from accessing?
- Move WordPress from Root to Subfolder
- Wp-CLI not working with WordPress installed with composer
- How to visit php file in my custom directory under site root directory
- WordPress File Structure
- Getting Internal server in sub folder pages
- Impossible to index an upload folder with 10k files
- WordPress in a Subdirectory
- Moving wordpress from /dir to main folder
- Get WP Install Directory