2012-02-16 20 views
5

mi codeignador funciona perfectamente en el host local pero no funciona en live.my codeigniter es la última versión.to también intento older.it siempre me muestra la página no encontrada en la redirección.codeigniter no funciona en la página activa error no encontrado en el servidor

entorno routes.php es

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

yo también subo .htaccess en server.i juzgados en Linux y ventana de ambos.

.htaccess

RewriteEngine on 
RewriteCond $1 !^(index\.php|resources|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] 
+0

¿cómo es su línea htaccess local y remota 'RewriteBase /'? – Gerep

+0

Sí, publique su '.htaccess'. – bottleboot

+0

htaccess actualizado en mi pregunta. Compruebe esto –

Respuesta

2

que puede hacer:

$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST']; //you can also leave blank this CI tend to find this by himself 
$config['index_page'] = ''; 

$config['uri_protocol'] = 'AUTO'; //if not working try one of these: 
    'PATH_INFO'  Uses the PATH_INFO 
    | 'QUERY_STRING' Uses the QUERY_STRING 
    | 'REQUEST_URI'  Uses the REQUEST_URI 
    | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO 

y probar este .htaccess yo uso para muchos sitios

RewriteEngine On 
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /index.php/$1 [L] 

si no funciona, sin embargo, utilizan un phpinfo(); y comprobar si mod_rewrite es enabled

Cuestiones relacionadas