2Jul/100
Add a directory installed WordPress on the root
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:
- Log in to your wordpress website
- 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.)
- 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
- 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.