change default page

Having trouble installing serendipity?
Post Reply
toncho11
Regular
Posts: 12
Joined: Thu Jan 17, 2008 10:58 am

change default page

Post by toncho11 »

Hi,

I want to set a page like lets say index.html to load instead of index.php to inform that my blog has moved to different domain.

I will continue to use the same Serendipity installation directory(if possible) as my new domain will redirect to index.php and thus will load Serendipity.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change default page

Post by garvinhicking »

Hi!

How about renaming your current index.php to index.old, and create a new index.php:

Code: Select all

<?php
header('Location: http://Yournewhost/serendipity/');
?>
?

HTH,
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