404 Page Not Found CodeIgniter2 in Host

1

I'm trying to upload a small application I made to a host ( link ) but for some reason, the only driver I can call in the 'route.php' is the 'welcome' (the one that comes by default $route['default_controller'] = "welcome" ). When I put the name of another driver does not get it.

  • I tried, using the name of the driver in uppercase and I shot "404 Page Not Found The page you requested was not found."
  • I tried using the controller name in Lowercase and the screen appears empty.

My configuration is as follows:

gestionreportev2
| application
| | config
| | | config.php
| | | routes.php
| | controllers
| | | export.php
| | models
| | | exportmodel.php
| | views
| | | export
| | | | index.php
|.htaccess

config.php

$config['base_url'] = 'http://www.fetratel.com/gestionreportev2/';
$config['index_page'] = '';

autoload.php

$autoload['libraries'] = array('database');
$autoload['helper'] = array('url', 'file');

routes.php

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

.htaccess

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

It should be noted, that this same configuration just changing the database parameters to connect locally works perfectly for me.

I appreciate all the support in advance.

I add the controller code

export.php

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Export extends CI_Controller {

      public function __construct()
      {
            parent::__construct();
            $this->load->model('Exportmodel','ticket');
      }

      public function index()
      {     
            $title = ['title' => 'Listado a Exportar'];
            $this->load->view('Header', $title);
            $this->load->view('Export/Index');
            $this->load->view('Foother');
      }

      public function ajax_list()
      {
            ...
      }
}
    
asked by Francisco J Gamboa H 12.01.2018 в 16:34
source

0 answers