Welcome Guest, Not a member yet? Register   Sign In
Download website
#1

Hello,

I am having trouble setting up my online website offline.

This is my example:

This website:  http://www.gsa-constructionspecialist.co...nsultation


When offline:

http://localhost/gsa/services/scheme-of-...nsultation


Not Found

The requested URL /gsa/services/scheme-of-services/consultation was not found on this server.


I wonder why?

What other settings should I change ?  I copy exactly.


I add this:

config/config.php

PHP Code:
$config['base_url']    = 'http://localhost/gsa/'


Nothing else happens.
" If I looks more intelligence please increase my reputation."
Reply
#2

I only trying to fix the link so that it works both local and online. Any clue how to?
" If I looks more intelligence please increase my reputation."
Reply
#3

I wonder what's wrong.  I check the routes:


config/routes.php

PHP Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller'] = 'home';
$route['404_override'] = '';

$route['articles/news/detail/(:any)'] = 'home/newsdetail';
$route['sendcontact'] = 'home/sendcontact';
$route['formregis'] = 'home/formregis';
$route['registration'] = 'home/sendregistration';

$route['(:any)/(:any)/(:any)'] = 'home/post';
$route['(:any)/(:any)'] = 'home/post';
$route['(:any)'] = 'home/page';

/* End of file routes.php */
/* Location: ./application/config/routes.php */ 
" If I looks more intelligence please increase my reputation."
Reply
#4

The requested URL /gsa/services/scheme-of-services/consultation was not found on this server.

Think about what that is saying to you!
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#5

This seems like a general apache error, not a codeigniter related issue. Check you .htaccess file or contact your hosting provider.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB