Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
"Under Construction" Page
Hi guys,
I installed TXP in the root of my site but am still working on articles etc. Therefore I would like to put up a temporary “under construction” page.
I read this thread but have no idea how I would go about creating a temporary “under construction” page without messing up my installation.
Is there an easy approach to this or is editing the .htaccess file the only way I can accomplish this?
Thank you!
Dada
Offline
#2 2005-12-22 17:38:59
- NyteOwl
- Member
- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: "Under Construction" Page
As web servers usually give precedence to index.html files if present, just create a static Under Construction page named index.html in your site’s main directory. This will be displayed instead of the index.php and you can continue developing your site in the background. When you are done just delete the index.html file and go live with the new site.
Last edited by NyteOwl (2005-12-22 17:44:24)
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: "Under Construction" Page
Thank you for the tip!
I solved it like that:
I created an index.htm file and edited the .htaccess in my site directory to say:
DirectoryIndex index.htm index.php
This will cause it to default to index.htm, and if it cannot find that then it will load index.php.
Note: If you working on a Mac you are most likely not able to see files that start with a dot -like the .htaccess file (because they are read as being system files and are hidden) so in order to be able to see hidden files do the following:
Edit the Finder’s preference file directly: It is in your home folder in Library:Preferences:com.apple.finder.plist
In TextEdit or another texteditor -just not MSWord look for the lines:
AppleShowAllFiles
FALSE
and then change FALSE to TRUE
Now you should be able to see the .htaccess file in your site folder and open it up in TextEdit and perform the first step I described above.
Offline
Pages: 1