Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-05-03 16:13:16

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Holding page & develop online?

What’s the best way to have a holding page and develop a site online at the same time?

Cheers, Lee

Offline

#2 2006-05-03 18:32:00

hcgtv
Plugin Author
From: Miami, Florida
Registered: 2005-11-29
Posts: 2,721
Website

Re: Holding page & develop online?

Most web hosts are configured to serve up index.html before index.php.

So you can create an index.html holding page and setup Textpattern like you normally would. Visitors coming to your site see your index.html, unless of course they ask for index.php.

Offline

#3 2006-05-03 19:11:54

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: Holding page & develop online?

But the htaccess file that comes with Txp serves up index.php over index.html if I’m not mistaken.

Offline

#4 2006-05-03 19:22:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Holding page & develop online?

You could change that temporarily. But visitors who come from search engines for example directly to a page that’s not your home page won’t be directed to index.html.

Offline

#5 2006-05-03 20:02:28

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Holding page & develop online?

But the htaccess file that comes with Txp serves up index.php over index.html if I’m not mistaken.

It’s commented out, so it uses whatever default your host provides.

I have mine set to DirectoryIndex index.html index.php all the time with no ill effects.

Offline

#6 2006-05-03 20:19:17

anoke
Archived Plugin Author
Registered: 2006-04-15
Posts: 152

Re: Holding page & develop online?

I once used something like the following in htaccess

RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteRule ^(.*)$ underconstruction.html [L]

..but that was longlong time ago and just simple static html pages.

The idea of that rule is to redirect all but your IP addresses (so you have to know your public ip) to the underconstruction.html. (iirc one should be able do similar redirection based on authentication too, but – again – i can’t know/remember.)

Maybe someone more literate person than me can say how badly that rewrite example fails, rewriting is the part of htaccess which really is in an alien language to me..


- When chickens are cold, they roost in trees; when ducks are cold, they plunge into water -

Offline

Board footer

Powered by FluxBB