WordPress.org

Ready to get started?Download WordPress

Forums

Blank homepage, pages forwarding to old static homepage (8 posts)

  1. Hotcoffee
    Member
    Posted 4 years ago #

    My WordPress control panel is operating without any problem... however I'm having problems getting the public side viewable.

    Here is what happens with different scenarios:

    with index.php selected as the "default document" ( Windows hosting ) all of the public pages (i.e. http://www.marinainnwa.com/?page_id=25 ) show up as blank with no content in the source code.

    With index.html selected as the default document the home page opens to my old static homepage ( index .html ) and when I try to view a public page such as http://www.marinainnwa.com/?page_id=25 it will also open up my homepage.

    Windows hosting
    version 2.9.1
    WordPress URL and blog URL bolts set to http://www.marinainnwa.com

    Any ideas?

  2. henkholland
    Member
    Posted 4 years ago #

    You apparently installed WP in the root of the server.
    Check the index.php in the root. It should contain this:

    <?php
    /**
     * 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.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    Next, rename your index.html (from your old site) to indexold.html and try http://www.marinainnwa.com

    Skip that because this one works:
    http://www.marinainnwa.com/index.php

    so just do the renaming of the index.html and you should be good.

  3. Hotcoffee
    Member
    Posted 4 years ago #

    The index.php file already had the code you mentioned.... when I rename or delete the old index.html file I get a blank page with no HTML for the home page and any other WordPress post or page.

    I restored the index.html file because the website is still live and don't want to disrupt their service.

    Thanks again for your help... any other ideas?

  4. s_ha_dum
    Member
    Posted 4 years ago #

    Where is WP installed? Both this-- http://www.marinainnwa.com/license.txt -- and this-- http://www.marinainnwa.com/blog/license.txt -- return a file. Like wise with-- http://www.marinainnwa.com/readme.html -- and-- http://www.marinainnwa.com/blog/readme.html -- but if you notice the readme's are for two different versions of WP. What's going on with your set-up?

  5. Hotcoffee
    Member
    Posted 4 years ago #

    The problem is our hosting ( verio iis ) ... we don't have enough resources. He fixed it temporarily by "Recycling virtual resource units"

    In Resource dashboard under configure VRU.

    I'm wondering if wp cache will help. Will report back.

  6. s_ha_dum
    Member
    Posted 4 years ago #

    OK. But why do you appear to have two installations of WP?

  7. Hotcoffee
    Member
    Posted 4 years ago #

    I originally had it installed in a subfolder while I was developing the website.

  8. s_ha_dum
    Member
    Posted 4 years ago #

    So... you originally had WP in '/blog' for development purposes but you've now moved it to '/', yes?

    But '/' isn't WP as near as I can tell. It seems to be all html and nothing in there really identifies it as a WP generated page. You don't get WP until you go to '/blog', which is perfectly fine, but links inside '/blog' direct back to '/', which isn't WP even though the link URLs look like WP URLs. For example, in http://www.marinainnwa.com/blog/ the 'Hotel Facts' link looks like this: http://www.marinainnwa.com/?page_id=6, which indicates that WP is in root but '/' isn't showing any indication of being WP. That link should look like this-- http://www.marinainnwa.com/blog/?page_id=6 if WP is in '/blog'. But, of course, you said you had WP in a subfolder for development purposes which indicates that it isn't in a subfolder anymore. Plus, you've still got two instances of WP floating around one of which is being directed to but doesn't work (in '/') and another which does work but isn't be directed to (in '/blog') and which shouldn't be there at all or so it sounds like based upon your explanation for the two WP instances.

    So which is the real WP instance and how is your site supposed to work?

Topic Closed

This topic has been closed to new replies.

About this Topic