adsense

How to Install WordPress Outside Document Root





1. Log in to your FTP account on your server and create the folder into which you want to install the WordPress core files -- for example, create 'wpsite' under your website's root directory. If you want to keep the core files hidden, use a more obscure directory name. If you think you might want to use another content management system on your homepage in the future, use a name that you'll be able to integrate with a larger site, such as 'blog.'
2. Install WordPress into this new folder, following the customary installation steps. You can do this manually or use Fantastico or a similar installation package if your Web hosting provider offers cPanel.

3. Log in to your WordPress site using the administrator credentials you created during the installation. Click 'Settings' and then click 'General' from the menu bar on the left.
4. Type the homepage URL for your WordPress into the box labeled 'Site address (URL).' This directs WordPress to use your document root as its home URL. Type the URL of the directory where you installed your WordPress core files in the 'WordPress address (URL)' text box. Click 'Save Changes.'
5. Go back to your FTP program and copy the 'index.php' and '.htaccess' files from your WordPress directory into your root directory.
6. Navigate to your root directory in your FTP program. Right click 'index.php' and click 'Edit.' Locate the line of code that looks like this:require('./wp-blog-header.php');
7. Change the code you located in Step 6 to the following:require('./wpsite/wp-blog-header.php');Replace 'wpsite' with the directory containing your WordPress core files. WordPress will now control your homepage from its installation directory.

Comments

1 Response to "How to Install WordPress Outside Document Root"

suvo said... June 13, 2019 at 3:00 AM

Amzing post Thanks for Shearing. i Read your Blog every day.Please write more about this topics.it very helpfull for me.Please write more about this topics.
More

Post a Comment

Popular Posts

About