• Hi

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter redplanet

    (@redplanet)

    Surely someone knows ???

    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.
    https://codex.www.ads-software.com/Moving_WordPress#Moving_WordPress_Within_Your_Site
    or
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    Thread Starter redplanet

    (@redplanet)

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

    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.

    <?php
    /*
    Template Name: Holding page
    */
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?=bloginfo('name'); ?></title>
    </head>
    
    <body>
    	<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>
    	</div>
    </body>
    </html>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp overiding my index.html holding page’ is closed to new replies.