LiveDieBleed.net These are the lies I have created…

2Jul/100

Add a directory installed WordPress on the root

Posted by Alvina

If you have WordPress installed in a directory but want to show the url as http://www/yourdomain.com instead of http://www.yourdomain.com/wpdirectory then you can follow the following few steps:

  1. Log in to your wordpress website
  2. Go to Settings->General and change the "Site address (URL)" setting to your domain URL (e.g. http://www/yourdomain.com) Note: Make sure you don't change the "WordPress address (URL)" setting or your blog won't work anymore.)
  3. Once your done you need create a index.php file in your favourite editor and past the following code in there:
    • <?php define('WP_USE_THEMES', true); require('./wpdirectory/wp-blog-header.php'); >

    make sure you change the "wpdirectory" to the folder you've installed WordPress in

  4. Save the file and upload it to your website using any FTP program

That's it! Now you can visited your website on http://www.yourdomain.com and see if it works.

Tagged as: No Comments