I have installed my blog on a sub directory in root directory called blog. The address to blog is like below, http://www.my-domain-name.com/blog/ Now I want my root address refers to the blog. That means when someone types, http://www.my-domain-name.com/ It should show my blog. Here I don't mean a redirection. I want to create an index.php in root folder and replace index.html with it. My blog's index.php contains following content. <?php get_header(); ?> <div class="content"> <div class="primary"> <?php include (TEMPLATEPATH . '/theloop.php'); ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> PHP: I can't figure out how to call functions like get_header() in my custom made index.php which is in root folder. Can anyone help me to get this done? webgaya.
Why don't you simply install the blog in your root folder instead of trying to do it with the index.php. Wordpress is likely to give some errors if the only file in the root folder is the index.
I got it done. Here is the How-to guide to do it right. http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory webgaya.