Soner
Soner

Reputation: 37

how to set default index to index.html

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

Answers (3)

user1365013
user1365013

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

N1ck
N1ck

Reputation: 2001

There's a plugin you could use: http://wordpress.org/extend/plugins/maintenance-mode/

Upvotes: 1

John Conde
John Conde

Reputation: 219794

In your root blog directory place this in your .htaccess file:

DirectoryIndex index.html

Upvotes: 2

Related Questions