Codeigniter 3 does not redirect to any controller. Getting 404. |
Codeigniter welcome page loads but no other controller. This application is working on WAMP locally, but not working on Godaddy.
But another application using Codeigniter 2 works on the same server. The server is VPS on Godaddy. Thanks in advance for the support. Here are the files. ***.config*** <?php defined('BASEPATH') OR exit('No direct script access allowed'); $config['base_url'] = 'http://mysite.com/ci3/'; $config['index_page'] = 'index.php'; $config['uri_protocol'] = 'REQUEST_URI'; ***.htaccess*** <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /ci3/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|assets|images|robots\.txt) RewriteRule ^(.*)$ /ci3/index.php/$1 [L] </IfModule> <IfModule !mod_rewrite.c> # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin ErrorDocument 404 /ci3/index.php </IfModule> PS: Searched through the forum couldnot find any solutions I have not tried while searching on google.
Search the forms for GoDaddy .htaccess
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |