Reputation: 37
I am building wordpress site and it's not finished yet. I want to redirect the visitors visiting http://domain.com to http://domain.com/under-construction but i want to be able to see my index.php...
I tried changing the names to index.html index.htm default.asp ..... none of them worked.
and if I used htaccess
it redirected all my pages to index.html so it doesnt work.
Any ideas? Thanks...
Upvotes: 0
Views: 504
Reputation: 106
In /.htaccess write as suggested by Sudhir. In /index.php write require('./under-construction/wp-blog-header.php');. No .htaccess in /under-construction/ and in /under-construction/index.php write require('./wp-blog-header.php');. Thats how it works in my case.
Upvotes: 0
Reputation: 2001
There's a plugin you could use: http://wordpress.org/extend/plugins/maintenance-mode/
Upvotes: 1
Reputation: 219794
In your root blog directory place this in your .htaccess file:
DirectoryIndex index.html
Upvotes: 2