How to resolve error 404 |
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?
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. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
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
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";
Apache?
mod_rewrite active? Is there an original .htaccess file and have you copied it? (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>
I jsut saw that when I go to admin I got this error:
load->view($this->view_data['canvas'])?> Does it change something ?
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?
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.
|
Welcome Guest, Not a member yet? Register Sign In |