wp overiding my index.html holding page (5 posts)

  1. redplanet
    Posted 7 years ago #


    I've got everything working fine with WP at the domain but i need to have an index.html holding page until i'm completely happy with the site.

    I do have a static index.html holding page in place with the stuff i need on it, however, if i type in url/index.html the site goes to a 'Sorry, no posts matched your criteria.' holding page.

    The server document root is currently set up to resolve to .html until i am happy with the site, but this is no use right now as WP is over-ruling my static index.html page thinking it is a post!

    Any advice please?

    Thanks in advance

  2. redplanet
    Posted 7 years ago #

    Surely someone knows ???

  3. Samuel B

    Posted 7 years ago #

    either delete .htaccess entirely
    or add this line to top
    DirectoryIndex index.html index.php

    when ready to use wordpress you will need to remove this
    you do realize you will have to add index.php to your main url to get wordpress to work?

    personally I think you would be better served by installing to a test folder (example.com/test) and get wp working how you want with no limitations - then when ready, move it.

  4. redplanet
    Posted 7 years ago #

    Many thanks for the feedback - been a busy few days and i didn't think i'd get a reply, sorry for my tardiness.

  5. I struggled with this for a while then I realised the easiest thing to do is make a very simple holding page template.

    Create a new page and set it as the default home page. Select the holding page as the template obviously.

    Here is an example.

    Template Name: Holding page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?=bloginfo('name'); ?></title>
    	<div style="text-align:center; margin-top:40px;">
    		<img src="<?php bloginfo('template_directory'); ?>/images/logo.gif" alt="" width="354" height="51" />
    		<p style="color:#333; font-family:Arial, Helvetica, sans-serif; font-size:18px">Comming soon!</p>

Topic Closed

This topic has been closed to new replies.

About this Topic