Using a static page for the main index.html page in a domain

Creating and modifying plugins.
Post Reply
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Using a static page for the main index.html page in a domain

Post by treehstn »

Is there a way to set a static page so that it is used as the main index page of a domain? I'm trying to figure it out from the settings but I'm not quite grasping the concept of the options available to make it work.

What I'm really trying to do is use s9y as the interface for a whole domain. It's a simple domain with just a few pages. The blog and a gallery will be the biggest parts.

Thanks!
treehstn
Regular
Posts: 31
Joined: Wed May 09, 2007 2:12 am

Post by treehstn »

I figured out how to do it! My web host has an option to redirect any page to another so I was able to build a static page as the index page and redirect the domain to that page. Works great!

www.cessnapilot.net
Ianardo
Regular
Posts: 114
Joined: Sun Nov 28, 2004 3:02 pm
Location: Hastings, U.K.
Contact:

Post by Ianardo »

Another way to do it (If your ISP can't) would be to add an index.html page containing this re-direct code:

Code: Select all

<html>

	<head>
		<title>Welcome to My Website</title>

		<META HTTP-EQUIV="refresh" CONTENT="0;URL=http://www.your_url.com/serendipity"> 

</head>
	<body>
	</body>

</html>
By changing the zero to say, 5 seconds you could introduce a title into the <body>.
75% of people make up three quarters of the World's population!
RJH
Regular
Posts: 58
Joined: Sat Dec 09, 2006 2:38 am
Contact:

Post by RJH »

I host with GoDaddy and they gave me this code to redirect to the Serendipity dir. Works great!


<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.yourdomainnamehere.com/serendipity/index.php");
exit();
?>

I put the code in a text file and renamed it to: "index.php" ftp'ed it to the root and voila!
Post Reply