he instalado IC en www.siteb.com/rexona subdirecotryCodeIgniter ningún archivo de entrada especificado de error
Mi .htaccess dentro www.siteb.com/rexona:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /rexona
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#‘system’ can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn’t true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
En config.php:
$config['index_page'] = '';
$config['base_url'] = '';
$config['uri_protocol'] = 'AUTO';
Siempre que trato de controladores de acceso llego Sin archivo de entrada especificado. Sin embargo, sí carga el controlador predeterminado, pero tampoco puedo acceder a ningún método en el controlador predeterminado.
¿Alguna idea? Gracias.
¿funcionará esto si transfiero el código a un servidor donde PHP se ejecuta como módulo apache? –
@Peter Si la configuración 'uri_protocol' está configurada en AUTO, sospecho que sí. Sin embargo, no recomendaría usar configuraciones de servidor específicas para un tipo de implementación cuando el servidor usa otra. – Repox
gracias, funciona en el alojamiento en vivo y también se ha eliminado el error de error relacionado con la carga de la biblioteca dinámica no válida –