WordPress.org

Ready to get started?Download WordPress

Forums

Can index.php file be called something else? (4 posts)

  1. polarweb
    Member
    Posted 7 years ago #

    Hello,
    We are trying to figure out how to get the blog running on its own page on our website, http://www.solaswebdesign.net. The problem we are encountering is that we cannot call the blog index file 'index.php' because that conflicts with our own homepage 'index.shtml'. We cannot change the filename of our homepage because of all of the inbound links we have coming into it. So, we've tried changing the blog filename to 'blogindex.php' and have it running on the root directory: http://www.solaswebdesign.net/blogindex.php. In this situation, we cannot make any of the options in the blog (commenting on blogs, anything on the left nav) work. We've also tried leaving it as 'index.php' and putting it into a seperate folder off of the root called 'wordpress', and followed the instructions found here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory. However, these instructions seem to indicate that the index.php file needs to be in the root directory. Can anyone help us out with this?

  2. yosemite
    Member
    Posted 7 years ago #

    Should work if you change step 4 to reflect h ttp://www.solaswebdesign.net/wordpress and leave the index.php in the wordpress/ sub-directory. Note the wordpress-related .htaccess (if used) would need to be in wordpress/ as well.

  3. polarweb
    Member
    Posted 7 years ago #

    Thanks, Yosemite. I appreciate your help. I did try this solution, and got the following error results on the index.php page in the wordpress directory. Take a look:

    http://www.solaswebdesign.net/wordpress/index.php

    I did follow the rest of the directions, and my index. php page looks like this:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wordpress/wp-blog-header.php');
    ?>

    Any thoughts?

  4. yosemite
    Member
    Posted 7 years ago #

    require('./wordpress/wp-blog-header.php');

    Change that to:
    require('./wp-blog-header.php');

    Make sense?

Topic Closed

This topic has been closed to new replies.

About this Topic