Welcome Guest, Not a member yet? Register   Sign In
Putting site live problem
#1

[eluser]opel[/eluser]
I have been devloping my CI site locally and just uploaded everything to my live server.

I have checked that I changed my base URL path and the index.php, the "system" folder has been placed out of the web root too. When I uploaded everything the homepage loads up fine but when I click on a but that loads a different controller I get a "Not Found" Error.

To put my system outside the web root I set the path to "../system".

Is there anything I have missed or should change in my config file ?

Thanks
#2

[eluser]zimco[/eluser]
I keep mine in the CodeIgniter folder with a version number so i can remember which version i'm always using and set mine like:

$system_folder = "../CodeIgniter_1.7.0/system";

Also did you remember to set your Application Folder Name right below the System Folder Name in the index.php?

$application_folder = "./application";
#3

[eluser]opel[/eluser]
thanks for your reply I found I had a problem with my htaccess file. It seems to work not except I am getting an offset error or 3 on the homepage?

any ideas the site is at : http://www.sweet-jayne.co.uk/
#4

[eluser]dmorin[/eluser]
Can you post your routes config file?
#5

[eluser]opel[/eluser]
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|     example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|    http://ellislab.com/codeigniter/user-guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|    $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|    $route['scaffolding_trigger'] = 'scaffolding';
|
| This route lets you set a "secret" word that will trigger the
| scaffolding feature for added security. Note: Scaffolding must be
| enabled in the controller in which you intend to use it.   The reserved
| routes must come before any wildcard or regular expression routes.
|
*/

$route['default_controller'] = "pages";
$route['scaffolding_trigger'] = "";


/* End of file routes.php */
/* Location: ./system/application/config/routes.php */
#6

[eluser]opel[/eluser]
My htaccess file as well :

Code:
RewriteEngine On
RewriteRule ^domains/[^\/]+/html/webstats[/]?$  https://beta-ac.mediatemple.net/services/manage/grid/reports/urchin/144203/urchin.cgi [R]
#7

[eluser]dmorin[/eluser]
Checkout http://ellislab.com/forums/viewthread/81311/




Theme © iAndrew 2016 - Forum software by © MyBB