Moderator
t-p
(@t-p)
If you just copying index.php to root
require('./wp-blog-header.php');
has to be there for wordpress to work
its on line 17
As for .htaccess file is a hidden file there may be already there in root.
Thanks for the quick replys!!
I have tried both those links already, my problem is I have turned on “Show hidden files” in FileZilla and still have no .htaccess. I have got a .htpasswds if thats worth anything?
the “require(‘./wp-blog-header.php’);” is not in my index.php, on line 17 i have a </div>
..i realize im missing something here? what index.php are you talking about?
You must have some other index.php in your root if you do then you will not be able to use wordpress from your root as they will conflict the index.php file in wordpress
has this
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require('./wp-blog-header.php');
?>
here is a link to my blog, i honestly cant find the require(‘url’); anywhere yet people are telling me wordpress cant work with out it?
Here is a link to my site http://www.flexhk.com/wordpress
please help! its my first wp site so sorry if some of my questions are stupid..
Thanks!
Here is my index.php code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes() ?>>
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen,projection" />
<?php wp_head(); ?>
</head>
<body>
<div id="wrapper">
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
<div id="left-column">
<div class="postl" id="post-<?php the_ID(); ?>"><h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
</div>
<?php endif; endwhile; else: ?>
<div>Alternate content</div>
<?php endif; ?>
<?php $i = 0; rewind_posts(); ?>
<?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
<div id="right-column">
<div class="postr" id="post-<?php the_ID(); ?>"><?php the_title(); ?>
<?php the_content(); ?>
</div>
<?php endif; endwhile; else: ?>
<div>Alternate content</div>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
</div>
</body></html>
that’s your themes index.php
You need the one at WP root. the same place where wp-content, wp-admin, wp-includes folders are located
looks like you have site working as I got error earlier
Yes that was it, I was looking in my themes index.php. Working now!
Thanks govpatel, voodoo and t-p for taking the time to reply!
much appreciated
C