• Resolved doug123x

    (@doug123x)


    Hi There –

    I’ve successfully installed wordpress on my site, but while I am populating the pages and so forth, I uploaded a “coming soon” default.htm, with the hopes of previewing the site through the index.php (and keeping the two seperate, until I remove the default.htm, which would then turn control over to wordpress). However, WordPress (index.php) is redirecting to the default.htm. If I remove the default.htm, the WordPress site works, but this defeats the purpose. I don’t want potential clients seeing the work in progress until it is completed.

    https://www.sampledomain.com/default.htm (interm “coming soon” message)
    https://www.sampledomain/com/index.php (wordpress redirector)

    Is this approach correct? Any input would be appreciated.

Viewing 3 replies - 16 through 18 (of 18 total)
  • govpatel

    (@govpatel)

    It’s probably your server settings, actually.

    Servers are set up to render pages in an order. Index.html, then home.html etc etc. Yours probably has default.htm before index.php, and either way, you can’t have TWO index files in the same folder without having issues.

    Shortest answer: On some servers, you can’t have BOTH index.php and default.htm in the same folder.

    That is why I suggested to install in a folder and keep your under construction page in root.

    After all just takes few minutes to move wordpress from folder to root.

    Thread Starter doug123x

    (@doug123x)

    I should have done this much earlier on – however – renaming index.php to bob.php causes the wordpress site to appear and the default.htm to be left alone happily.

    I think this confirms the post provided by govpatel.

    Thank you.

    My server says:

    This is the order of precedence for the default files on your Linux Standard account:
    1.default.html
    2.default.htm
    3.index.php
    4.index.shtml
    5.index.html
    6.index.htm
    7.home.html
    8.home.htm
    9.index.php5
    10.welcome.html
    11.welcome.htm

    But, like some other folks, when I enter the domain name followed by index.php, it takes me to default.htm.
    I was able to change index.php to myindex.php and the it allows me to go to the WordPress php page.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘WordPress Development Environment’ is closed to new replies.