WordPress files are placed in separate subdirectories.

  
Many people want to use WordPress in the root directory (such as http://xxx.com), but don't want WordPress to mess up their root directory. Therefore, WordPress allows you to install WordPress in a subdirectory, but allows visitors to access it through the root directory. WARNING: Please note for multi-site users - The following is not valid for users with multiple sites enabled. The steps to move WordPress to a dedicated subdirectory are as follows: Create a new directory for your WordPress files (in this article, use /wordpress as an example). If you are on Linux, run the mkdir wordpress command in the www directory. You probably also need to run “chown apache:apache” or“chown [your username]:www-data” to make it have the correct owner. Go to the General Settings page. At the “WordPress Address (URL), change it to the new location of your WordPress core file. For example: http://xxx.com/wordpress in the <quo;Site Address (URL)” column, retain the location of your original root directory. For example: http://xxx.comClick “Save Settings”. (Don't worry about the error message you see at this time, don't test it now! Otherwise you will get an error message like "File not found".) Move (cut) your WordPress core file to a new location (just filled out “WordPress address & rdquo;). Copy from your WordPress address (don't cut!) index.php and .htaccess to the root directory (just filled out &"site address”). You may not see the .htaccess file, so you will need to set up your FTP client to display hidden files. If you are not using a permalink, you may not have a .htaccess file, please proceed directly to the next step. If you run WordPress on a Windows (IIS) server and use a permalink, you won't have .htaccess but a web.config file. As with the above method, copy index.php to the root of the site and then move (cut! not copy!) web.config to your root directory. Use a text editor to open the index.php of the root directory. Make the following changes and save the file. Change this line: require('./wp-blog-header.php'); make it (replace with your own directory name “wordpress”):require('./wordpress/wp-blog-header .php'); Log in at the new location. For example, http://xxx.com/wordpress/wp-admin/If you have fixed links, go to the “Fixed links admin page to save the settings once. At this point, WordPress will automatically update the .htaccess file for you if you have sufficient permissions. If the automatic write fails, a new rewrite entry will be automatically displayed on the page. Please manually edit your .htaccess file (in the same directory as the main index.php). This article is from [System Home] www. Xp85.com
Copyright © Windows knowledge All Rights Reserved