• Hi,
    I’m building a WordPress installation directly at a domain eg. https://www.domain.co.uk. I don’t want people who visit that domain to see the site until it’s done, so I added “DirectoryIndex underconstruction.htm” to my .htaccess file and created that page which shows my under construction message. So now if I visit https://www.domain.co.uk I see the construction message, and if I visit https://www.domain.co.uk/index.php I see the WordPress installation. So far so good.

    The only thing is if I click on any of the links in the sidebar, I get taken to the under construction page, with the browser showing for example URL “https://www.helenorton.co.uk/?page_id=3”. I can get to the actual page by inserting “index.php” before the ? but it’s a pain having to do this every time I click a link. Can anyone suggest a solution? I’m actually building this for someone else and I want them to easily view work in progress. Many thanks for any advice.

Viewing 7 replies - 1 through 7 (of 7 total)
  • under construction pages kinda blow… what I tend to do is use htaccess to secure the directory so anyone visiting gets a password prompt… but once I enter that password, I’m no longer bothered by the prompt until I close my browser.

    whatever default document you put in place will be activated by wordpress’ links, so I think this is your easy way out.

    I googled you up some instructions in case you’re not using a hosting control panel which could do all this for you.

    Thread Starter Speedie

    (@speedie)

    Great idea, I have cPanel which I think already has a password protect feature. I guess the only down side is you can’t display any information for visitors to the domain such as a site launch date, enquiries email address/phone number or whatever. Although the person I’m building the site for doesn’t require it in this case. Many thanks for your help.

    that plugin sounds nice in theory, but I’ve never been able to get it to work without screwing up the dashboard and generally kicking me out ??

    Speedie, I guess the real key is not to build it live… but you and I both know it’s just easier that way ??

    What I am doing is building the site for them in a subdirectory and then plan to transfer the site over to the root folder when it’s completed. I gave them a link so they can see the progression. On the home page of the subdirectory as a post I put in that this was under construction and to please visit the link provided…

    Since WP uses its main/index/home-page as index.php file, I would suggest to simply make an “under construction” page and name it index.html and upload it to the root; since index.html supersedes index.php when it comes to loading as INDEX (mostly, and it depends on your server’s config,) anyone who visits the site will see your “under construction” page while the WP’s structure remains intact and you’ll be able to test your WP blog. And once finalized you simply delete the index.html. The only drawback will be to manually type your domainname.com/index.php when accessing or viewing your blog’s home page since clicking on the home page link/button will take you to the /root which will automatically load the index.html.

    The plugin worked for me. Thanks for the suggestion.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding “under construction” page but still be able to test the site?’ is closed to new replies.