![]() |
How to resolve error 404 - 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: How to resolve error 404 (/showthread.php?tid=63762) |
How to resolve error 404 - Elfrancki - 12-08-2015 Hi everybody, I'have 2 problem with CI. I have transfered 2 website made with CI from a server to my server. I have config database.php and config.php . 1: My website is on a sub domaine : http://abtours.b-communication.be . When i clic to see the website (I havec index.html before my site content) , I get 404 erreur: 404 Page Not Found The page you requested was not found. Website : 2: I did the same, but this time i get sql error: http://khs.b-communication.be Can anyone help me? RE: How to resolve error 404 - InsiteFX - 12-08-2015 Use your web browsers development tools to see what is causing the 404 error. Most use use F12 key to activate. I have a sub-domain on mine and I just call it by its name no , period. RE: How to resolve error 404 - ciadmin - 12-08-2015 You have not provided enough information to help you. Perhaps show your config/config.php and/or config/database.php You must have config/routes.php as well, since the two links on your homepage lead to xxx/fr and xxx/nl The second URL you mention in your post leads to a bunch of code shown, as if you are missing a <?php delimiter RE: How to resolve error 404 - Elfrancki - 12-08-2015 Database.php: PHP Code: $active_group = 'default'; Config.php: PHP Code: $config['base_url'] = "http://abtours.b-communication.be/"; Routes.php PHP Code: $route['default_controller'] = "front"; RE: How to resolve error 404 - ivantcholakov - 12-08-2015 Apache? mod_rewrite active? Is there an original .htaccess file and have you copied it? RE: How to resolve error 404 - Elfrancki - 12-08-2015 (12-08-2015, 06:11 AM)ivantcholakov Wrote: Apache? Yes, apache2 . I copied all files from the old server (where it worked), there is /htacess: PHP Code: <IfModule mod_rewrite.c> RE: How to resolve error 404 - Elfrancki - 12-08-2015 I jsut saw that when I go to admin I got this error: load->view($this->view_data['canvas'])?> Does it change something ? RE: How to resolve error 404 - ivantcholakov - 12-08-2015 Your site is on a sub-domain, not on a sub-directory as far as I can understand. Code: RewriteBase /abtours/ Are sure about this line within your .htaccess file? What would happen if you just comment this line? RE: How to resolve error 404 - Elfrancki - 12-09-2015 nothing happen . Now I have error 500 on it ... RE: How to resolve error 404 - ivantcholakov - 12-09-2015 I can not see something wrong in the configuration data then. Perhaps other information is needed, but it is hard to guess what. Call somebody to have a look at the all the code and make it running. |