CodeIgniter Forums
Download website - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Download website (/showthread.php?tid=66179)



Download website - davy_yg - 09-15-2016

Hello,

I am having trouble setting up my online website offline.

This is my example:

This website:  http://www.gsa-constructionspecialist.com/services/scheme-of-services/consultation


When offline:

http://localhost/gsa/services/scheme-of-services/consultation


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.


RE: Download website - davy_yg - 09-15-2016

I only trying to fix the link so that it works both local and online. Any clue how to?


RE: Download website - davy_yg - 09-15-2016

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 */ 



RE: Download website - InsiteFX - 09-16-2016

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

Think about what that is saying to you!


RE: Download website - Diederik - 09-16-2016

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