[eluser]ErinKabbash[/eluser]
First of all thanks in advanced for any help that you can provide me with this. I am publishing a site that I made on to a GoDaddy server but the home page will not load? I read this post: Solution Found - Puzzled using codeigniter on godaddy shared hosting server but it doesn't resolve my issue. My links work properly it is just my homepage/default url that will not load. The site is theworksplumbingsd.com which will not load I have to put in theworksplumbingsd.com/home in order for the site to load. How come the theworksplumbingsd.com won't work but the theworksplumbingsd.com/home or any other link on the site will work?
This is what I have in my config.php:
Code:
$config['base_url'] = 'http://theworksplumbingsd.com';
$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";
This is what I have in my routes.php:
Code:
$route['default_controller'] = "theWorksPlumbingController";
$route['404_override'] = '';
$route['home'] = 'theWorksPlumbingController/home';
$route['about'] = 'theWorksPlumbingController/about';
$route['services'] = 'theWorksPlumbingController/services';
$route['rates'] = 'theWorksPlumbingController/rates';
$route['specials'] = 'theWorksPlumbingController/specials';
$route['contact'] = 'theWorksPlumbingController/contact';
and this is what I have in my controller theWorksPlumbingController.php:
Code:
class TheWorksPlumbingController extends CI_Controller {
public function index(){
$this->load->view('templates/header');
$this->load->view('home');
$this->load->view('templates/footer');
}
public function home(){
$this->load->view('templates/header');
$this->load->view('home');
$this->load->view('templates/footer');
}
public function about(){
$this->load->view('templates/header');
$this->load->view('about');
$this->load->view('templates/footer');
}
public function services(){
$this->load->view('templates/header');
$this->load->view('services');
$this->load->view('templates/footer');
}
public function rates(){
$this->load->view('templates/header');
$this->load->view('rates');
$this->load->view('templates/footer');
}
public function specials(){
$this->load->view('templates/header');
$this->load->view('specials');
$this->load->view('templates/footer');
}
public function contact(){
$this->load->view('templates/header');
$this->load->view('contact');
$this->load->view('templates/footer');
}
}
and this is my .htaccess(also my .htaccess is in the root folder):
Code:
# Options
Options -Multiviews
Options +FollowSymLinks
#Enable mod rewrite
RewriteEngine On
#the location of the root of your site
#if writing for subdirectories, you would enter /subdirectory
RewriteBase /
#Removes access to CodeIgniter system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css
#folders, and the robots.txt file
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php?/$1 [L]
Thanks again so much for the help!