The wp-content directory stores just about every file for customizing WordPress. This directory store your plugins, themes, and additional files to extend WordPress in any way imaginable. The WP-content directory has a single PHP file, index.php . The contents of this file are shown here:
<?php /Silence is golden.
So what’s the point of this file? Actually this is a very important file. The index.php file blocks anyone from viewing a directory listing of your wp-contents folder. If the index.php file didn’t exist, and your web server allowed directory listings, visiting http://example.com/wp-contents would display all of the files and folders in that directory. This can help hackers gain access to key files that might help exploit your website.
If you are manually updating WordPress, make sure you avoid overwriting your WP-content directory.
Plugins are stored in the wp-content/plugins directory. A plugin can be a single file or multiple files inside of a folder. Any files within the /plugins directory are scanned by WordPress to work out if the file could be a properly formatted WordPress plugin. If the file is set to be a plugin, it seems below the Plugins ➪ put in Plugins SubPanel on your admin dashboard able to be activated.
|NOTE Remember that to automatically deactivate a plugin, you can remove it from your /plugins folder. If an active plugin’s files are missing, WordPress deactivates the plugin before trying to render your website.|
Your WP-content directory might also include a /mu-plugins directory. Must-use (mu) plugins are plugins that are automatically enabled in WordPress. Any plugins that exist in this folder will be executed just like a standard activated plugin. The major difference is mu-plugins cannot exist in a subdirectory or they will be ignored.
Themes are stored in the wp-content/themes directory. Each theme must exist in its own subdirectory and must consist of the proper template files for WordPress to recognize it as a usable theme. At a minimum, an index.php and a style.css file must exist in the theme directory, along with proper tagging to display under the Appearance ➪ Themes SubPanel on your admin dashboard.
WordPress will store as several themes during this directory as your server permits. you’ll be able to simply read a preview of any theme, or activate a brand new theme, beneath the looks ➪ Themes SubPanel.
Uploads and Media Directory
WordPress stores uploaded media within the wp-content/uploads folder.This directory does not exist in a default installation of WordPress. The /uploads directory is created the first time you successfully upload a file to WordPress. By default WordPress stores uploads in month- and year- based folders. So your uploaded image would be stored like so:
Before you can upload any images or files in WordPress, you need to set the /wp-content directory to be writable. When you upload your first image, WordPress auto-creates the /uploads directory and any needed subdirectories. After you have got with success uploaded your initial image, reset the /wp-content permissions to not be writable. Currently, there are no thanks to import pictures uploaded via FTP into the WordPress Media Library. If creating the uploads directory write-able isn’t associate choice, there ar plugins obtainable (such as NextGen Gallery, delineated well within the Custom Directories section that follows) that embody this practicality.
The wp-content/upgrade directory is mechanically created by WordPress after you use the automated update method.This folder is used by WordPress to store the new version of WordPress that is downloaded from WordPress.org. The compressed WordPress download is extracted in this folder prior to the update. This folder should remain untouched for automatic updates to process successfully. If this directory is deleted, WordPress re-creates it consecutive time you run the auto-updater.
Some plugins that require a lot of custom files will store those files in a directory in your wp-content folders.
The Super Cache plugin (http://wordpress.org/extend/plugins/wp-super-cache/) creates a / wp-content/cache directory to store all of the cached pages created for your website. A cached page is simply a fully generated page on your website saved as a static HTML file. Instead of generating the page each time a user clicks one of your links, the cache plugin serves up the static HTML file to the visitor. This dramatically decreases WordPress load times and increases performance because pages aren’t generated in each view, but rather only when the cache is regenerated based on your settings.
The Super Cache plugin also adds two files to your wp-content directory: advanced-cache.php and wp-cache-config.php. These two files are required for Super Cache to function correctly. When Super Cache is activated, it tries to create these two files. If it fails, a notice appears alerting you of this. The files exist in the Super Cache plugin directory and can be manually moved to the wp-content directory.
so how can i access my index file??