Good day! I experiment with git and codeignitor 2, in general I made the “application” Hello World; .ru / . The repository has updated and synchronized http://joxi.ru/Drlae4Buk1MPmP but does not work.

In config.php, the base_url parameter is specified as

$config['base_url'] = 'http://'.$_SERVER["HTTP_HOST"]; 

I thought that there might be an error due to the fact that the address of the local copy and the copy on the real hosting are different. But this led to nothing.

What else can be a mistake, incomprehensible.

Here is the listing of the .htaccess files, there are two of them in the /application/.htaccess folder like this:

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

In the /system/.htaccess folder is:

 <IfModule authz_core_module> Require all denied </IfModule> <IfModule !authz_core_module> Deny from all </IfModule> 

Need to bring them to a single mind?

    1 answer 1

    There may be a lot of reasons, but first look at how your .htaccess looks on hosting (if there is an Apache used there). The point is to force the server to send all requests to the index.php file.

    Throw in here listing .htaccess

    • added listing to question text - maler1988
    • deleted these two files, created in the root one .htaccess with this content RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] - did not help = ( - maler1988