How to testdrive index.php in web root

Having trouble installing serendipity?
Post Reply
voelspriet
Regular
Posts: 11
Joined: Sat May 28, 2005 11:47 pm
Contact:

How to testdrive index.php in web root

Post 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?
Oliver
Regular
Posts: 178
Joined: Mon Jan 10, 2005 7:43 pm
Location: Herne, Germany
Contact:

Post 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
Last edited by Oliver on Sun Jul 17, 2005 3:31 am, edited 1 time in total.
Image
Guest

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply