How to put up temporary front page in Drupal site?

What's the best practice approach and / easiest to put up a temporary page at http://www.mysite.com/ announcing the site will be offline?

I certainly don't want people to access any of the pages directly (bookmarks for example).
sandshakimiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

junipllcCommented:
The best way to do this is probably to put the site into maintenance mode. You can then theme maintenance-page.tpl.php to your liking, and it will be displayed instead of the default.

In order to work on the site in the meantime, you'll need to log in at:

http://example.com/user

But during this time no other pages will be available to view if one is not logged in.

Cheers,

Mike
0
sandshakimiAuthor Commented:
I'm thinking more of a redirct approach. Perhaps add a line to the .htaccess file?

I want all pages in http://www.mysite.com  to go to http://www.mysite.com/index.html (where I've got a temp. content to display)
0
junipllcCommented:
Ah, gotcha. Untested, but here goes...something like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>

Open in new window

I hope I have that right.

Cheers,

Mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HagayMandelCommented:
@sandshakimi
The first solution is the right one!!
Putting the site on maintenance mode (admin/config/development/maintenance), means exactly that: the site is offline, and no page is available via bookmarks, links etc.
0
nanharbisonCommented:
You could go to the configuration page and set a different page to be the home page there.
Configuration -> Site Information ->choose the page you want to go in: Default front page.
And then the other pages can be un published.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Drupal

From novice to tech pro — start learning today.