Page 1 of 1
How to testdrive index.php in web root
Posted: Sun Jul 03, 2005 4:10 pm
by voelspriet
I'm converting my existing site to Serendipity. I've installed it in the web root, so index.php is default. My current homepage had index.html as default. Unfortunately, I'm going live right away with Serendipity. I don't want the index.php to be shown yet, I want to convert my board without users seeing the index.php. They should see te index.html. How do I do this?
Posted: Sun Jul 03, 2005 5:11 pm
by Oliver
Edit your
.htaccess-file, there you can change the directory index:
Code: Select all
DirectoryIndex index.html index.php index.htm
The first page, that will be loaded in this example, is the file
index.html. If you do not have an index.html, the next file,
index.php, will be loaded. And if you do not have an
index.php, the third entry,
index.htm, will be your startpage
- Oliver
Posted: Mon Jul 04, 2005 10:50 am
by Guest
Doesn't work yet. My .htaccess is:
# BEGIN s9y
DirectoryIndex index.html
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
Posted: Mon Jul 04, 2005 1:47 pm
by garvinhicking
If that doesn't work then maybe your provider doesn't allow you to change it in a .htaccess file.
So either you need to contact your provider and ask him why it doesn't work, or you need to rename index.php to "index2.php" and manually call the right file and adjust links that go to index.php until your site can go live.
Regards,
Garvin