WordPress Tutorial: WordPress On Index Page
This is a rather simple tutorial but I felt it was necessary to include this as one of my WordPress tutorials.
If you have your WordPress in a subdirectory, such as yoursite.com/wp or yoursite.com/wordpress, you will have to visit that address every time you want to visit your site.
Open or create the file index.php in the root directory. NOT the one in the “wp” folder.
In it, paste the following code; nothing else:
<?php
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp/wp-blog-header.php');
?>
If your WordPress folder is not called “wp”, change that part accordingly.
Go to your WordPress dashboard and log in. Go to Settings, General.
Change Blog Address (URL) to your website URL. This is all you need to change. DO NOT change anything else otherwise WordPress may no longer work.
Click “Save Changes”. When you visit yoursite.com you should now see your blog and posts.
