This site will be customized as bellow:
- WordPress start at the site’s root,
http://www.ivanteoh.com/. - the blog will be located at
http://www.ivanteoh.com/blog/. - the other pages, such as “about” page will be located at
http://www.ivanteoh.com/about/.
To achieve the goals above, follow the steps as below:
- Create two more pages, “Home” and “Blog” beside “About” page in
Manage > Pages > Manage Pagessection. - Write something on “Home” page. That will be my front page.
- Leave “Blog” page blank as it will be my posts page.
- Change the address to the site root directory’s URL,
http://www.ivanteoh.com/in the box forBlog address (URL)ofSettings > General > General Settingssection. - Update permalinks structure to begin with “/blog/” in
Settings > Permalinks > Customize Permalink Structure > Common settingssection. In my case, it would be “/blog/%year%/%monthnum%/%postname%/”. - Set “Home” as
Front pageand “Blog” asPosts pageinFront page displaysofSettings > Reading > Reading Settingssection. - Move the WordPress core files to the new folder. In my case, “blog” folder. I did this step in the beginnings of creating WordPress blog platform in my web hosting.
- Copy the
index.phpand.htaccessfiles from the WordPress directory (“blog” folder) into root directory of the site. - Edit
index.phpin root directory with text editor. - Change the line that says:
require('./wp-blog-header.php');to the following, using directory name for the WordPress core files:require('./blog/wp-blog-header.php'); - Save the file.
References
- Making Your Blog Appear in a Non-Root Folder
- Giving WordPress Its Own Directory
- Pages
- Settings Reading SubPanel