Main site not loading through index.php
-
Hi all,
I’ve done a search through the board and haven’t found a solution that resolved my problem, so I’d appreciate any help. I have an existing static site at https://www.ccc-connection.com. I want to run WP as a CMS. I’ve installed WP 2.9.1 at https://www.ccc-connection.com/fancy and am trying to set it up before I change the options for WP to control the root.
I can login into my admin area just fine (ccc-connection.com/fancy/wp-admin/), although, after logging in, the dir of https://www.ccc-connection.com/fancy/wp-admin/ is displayed, and I have to manually click the “index.php” to get to the admin panel (problem #1).
I can see my posts if I click on their direct links (e.g. https://www.ccc-connection.com/fancy/hello-world/ but the WP site/main index won’t load properly (problem #2). When I point my browser to the folder containing WP (/fancy/) the dir is listed.
I checked my
/fancy/index.php
file and this is what it contains<?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'); ?>
This is what’s in my .htaccess file in the /fancy/ dir:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /fancy/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /fancy/index.php [L] </IfModule> # END WordPress
I’ve reinstalled WP a few times, cleared the tables (or at least I thought I did), downgraded to 2.8.6 and upgraded to 2.9.1 through the admin auto upgrade. Still the same problem. There must be something else I’m missing.
Oh–the wp-blog-header.php is intact under /fancy/. Here’s what it contains:
<?php /** * Loads the WordPress environment and template. * * @package WordPress */ if ( !isset($wp_did_header) ) { $wp_did_header = true; require_once( dirname(__FILE__) . '/wp-load.php' ); wp(); require_once( ABSPATH . WPINC . '/template-loader.php' ); } ?>
The theme is the Default theme.
- The topic ‘Main site not loading through index.php’ is closed to new replies.