This is my index.php code, maybe it helps:
<?include("../header.php");?>
<?php
/* Don't remove this line. */
require('./wp-blog-header.php');
?>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
</head>
<body>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php the_date('','<b>','</b>'); ?> - <b>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></b>
<?php the_content(); ?>
Posted by <?php the_author() ?> in <?php the_category() ?> @ <?php the_time() ?> <?php edit_post_link(); ?> |
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
<!--
<?php trackback_rdf(); ?>
-->
<?php include(ABSPATH . 'wp-comments.php'); ?>
<?php endforeach; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
<b><?php _e('Categories:'); ?></b>
<b><label for="s"><?php _e('Search:'); ?></label></b>
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<div>
<input type="text" name="s" id="s" size="15" />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />
</div>
</form>
<b><?php _e('Archives:'); ?></b>
<?php wp_get_archives('type=monthly'); ?>
<b><?php _e('Other:'); ?></b>
<p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by WordPress"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?></cite>
<?include("../footer.php");?>