View Full Version : Why does my index.php page act as a 404 Error page?

06-11-2009, 06:04 PM
Okay, this is strange. I've had the code re-typed, and it still happens.
My index page keeps acting as a 404 error page throughout...




Why does this happen?
I have no 404.shtml page present, yet, it still does this. My code is as below:

<!-- <meta http-equiv="Refresh" content="1; url=http://kwivia.co.uk/h/"> -->
<title>Coming Soon!</TITLE>
<style type="text/css">
margin-top: 0.3em;
background-color: #000000;

color: #ff4400;
color: #1ebfff;
<center><font face="Lucida Grande" color="#ffffff"><h1>
<img src="pdev.jpg" width="300" /><br>
// countdown function
// parameters: (year, month, day, hour, minute)

// author: J. Griffiths on behalf of Kwivia
// website: kwivia.co.uk
// Note:
// Unix timestamp limitations
// Date range is from
// the year 1970 to 2038
function countdown($year, $month, $day, $hour, $minute)
// make a unix timestamp for the given date
$the_countdown_date = mktime($hour, $minute, 0, $month, $day, $year, -1);

// get current unix timestamp
$today = time();

$difference = $the_countdown_date - $today;
if ($difference < 0) $difference = 0;

$days_left = floor($difference/60/60/24);
$hours_left = floor(($difference - $days_left*60*60*24)/60/60);
$minutes_left = floor(($difference - $days_left*60*60*24 - $hours_left*60*60)/60);


echo "Only ".$days_left." days left. So close! ";
<b>Once I have 1,000 followers on <a href="http://twitter.com/Kwivia">Twitter</a> I will choose a random person from my followers and
they will win a hot drinks machine for their Sims 3 game, as well as some Kwivia goodies.</b><br>
<h6><a href="/help">Get Help</a></h6>

(Yes, I am aware of the badly-coded code, I couldn't care less at this moment.)

06-11-2009, 07:08 PM
Check for the presence of a .htaccess file that is defining 404 and directing it to index.php.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum