• My static home page won’t load but the blog page loads. My wordpress resoruces are in a folder within the site root (html) location. I’ve modifed the dashboard “Genera” preferences to point to the correct url for the resource folder and the correct url for the site.

    I then put the index.php into the site root location and modified the following to point the the correct location for wp-blog-header.php

    “/** Loads the WordPress Environment and Template */”

    The site works but opens the blog page and not the static home page. It worked correctly when all in the same folder.

    Thanks in advance for any help…

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    Thread Starter torweb

    (@torweb)

    Thanks for the reply however I’ve done all of this. I have a static page called “Home”. I have another page called “Press” which is empty and properly displays my blog postings. The whole site works great – the way it should until I try to configure per instructions in the Dasboard’s Settings/General tab section below:

    “Enter the address here if you want your site homepage to be different from the directory you installed WordPress.”

    When I do that and view the site, the page called “press” comes up instead of the “Home” page I created.

    Leave the urls in Settings->General alone. You do not need to amend them.

    Thread Starter torweb

    (@torweb)

    Thanks…I did that and the same results. Below is my index.php file that is in the root location with the changes made:

    /** Loads the WordPress Environment and Template */
    require(‘./wp/wp-blog-header.php’);
    ?

    My wordpress resource files are in the directory “wp”

    Again, the site works correctly until I move the index.php file out of the wp folder.

    If you’re trying to pull WP content into a pre-existing non-WP site, see Integrating_Wordpress_with_Your_Website. If you’re simply trying to create a static front page for your WP site, you do not need to call wp-blog-header.php in the page’s template file.

    Thread Starter torweb

    (@torweb)

    My client had an existing HTML site that had to stay live so I created a folder called “wp” and installed wordpress. I built out the wordpress site which works as planned in that folder. Next I needed to make so you didn’t need to type in their URL with the file folder at the end to view the wordpress site, that is, from https://www.site.com/wp to https://www.site.com

    The wordpress documentation explains to copy the index.php file and move it to the root directory then modify the link to the wordpress resources as I detailed in an earlier post.

    This is where the problem starts…again the site works fine until I move the index.php out of the wordpress folder where I built the site.

    The notation in the index.php file verifies it’s function:

    * Front to the WordPress application. This file doesn’t do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.

    I’m sure I’m doing this the right way and am wondering if it’s related to my theme, which is from studio press and uses their “Genisis” framework.

    the site works fine until I move the index.php out of the wordpress folder where I built the site.

    7. Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress directory into the root directory of your site (Blog address).
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    Thread Starter torweb

    (@torweb)

    Well, that’s exactly what I’ve done (above). I’ve done this several times before on other sites.

    The index.php file is still in the wordpress folder and a copied version is in the root directory with a modified address for the wp folder and files…as the codex instructions explain.

    I’m mystified

    Have you re-visited Settings->Permalinks so that WordPress can automatically update your .htaccess file (if it has the appropriate file permissions)?

    I’m having the same problem on another site of mine. I’ve reset the htaccess file by changing the permalinks under settings, but still the homepage won’t come up. it’s weird, when I go to website.com/home it comes up, but website.com doesn’t.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Static home page won't laod – blog page loads’ is closed to new replies.