How to Set up index.php in Root Folder
-
I have installed my blog on a subdirectory
in root directory called blog.The address to blog is like below,
https://www.my-domain-name.com/blog/Now I want my root address refers to the
blog. That means when someone types,
https://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(); ?>
‘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.
- The topic ‘How to Set up index.php in Root Folder’ is closed to new replies.