I installed a WordPress for a domain name. When I use this domain name will point to index.php
in my template. I want show a under construction page for this domain name, but the other hand I still want work on index.php
in my template.
Leave a Reply
You must be logged in to post a comment.
You can filter
template_include
and include a special file for users who are not logged in:The file
under-construction.php
could be a plain HTML file; it doesnât have to be a PHP file.The simplest workaround would be to just add the static content in a new
index.html
file in the root, and the server should read the.html
before the.php
You can restrict depending on the IP address and Htaccess file.
where 12.34.56.78 is your ip address.
Use maintenance mode plugin. Activate it. Once activate login as admin and you can only view your site. Other users can see maintenance message.
The simplest way would be using an maintenance or coming soon plugin. It will take a minute or 2 to setup the plugin and you’re good to go.
http://wordpress.org/extend/plugins/wp-maintenance-mode/