Route error in php

Asked

Viewed 36 times

0

I started developing a system using the codeigniter framework 3. In localhost I had no problems with routes, but after I put the system on the server started showing problems in the views routes.

Problem:

404 Page Not Found

I inspected the code by browser and in the network tab, when clicking on the link that directs me to view, presents the same problem.

Note: The file has been changed config.php, in which I changed the line of the code $config['base_url'] to get the url of the server.

php 5.6 is installed.

Follow the file .htaccess

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|images|js|css|uploads|favicon.png)
RewriteCond %(REQUEST_FILENAME) !-f
RewriteCond %(REQUEST_FILENAME) !-d
RewriteRule ^(.*)$ ./index.php/$1 [L]

Follow a code with the view links:

 <ul class="treeview-menu">
                        <?php if($this->session->userdata("perfil") == 1): ?>
                            <li><a href="<?php echo base_url();?>manutencao/categorias"><i class="fa fa-circle-o"></i> Categorias</a></li>
                            <li><a href="<?php echo base_url();?>manutencao/clientes"><i class="fa fa-circle-o"></i> Clientes</a></li>
                            <li><a href="<?php echo base_url();?>manutencao/produtos"><i class="fa fa-circle-o"></i> Produtos</a></li>
                            <li><a href="<?php echo base_url();?>manutencao/responsaveis"><i class="fa fa-circle-o"></i> Responsáveis</a></li>
                        <?php endif; ?>
                        <li><a href="<?php echo base_url();?>manutencao/ordens"><i class="fa fa-circle-o"></i> Ordens de Serviço</a></li>
                    </ul>

Thank you.

  • And the CI structure, you have used with the Main name for controller and model files?

  • Yeah, I used it that way, there’s a problem?

  • I changed everything to minuscule file names and now can’t find any view

  • 1

    I went back what I had before, in fact the problem was the name of a folder that was Maiusculo and put minusculo and it worked. Controllers uppercase (first letter)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.