Welcome Guest, Not a member yet? Register   Sign In
404 not found
#1

Hi guys, i have used codeigniter before and i have never had this issue. Im sutck in a 404 not found and i dont know whats happening.
Im on localhost using xamp.
Apache/2.4.48 (Win64) OpenSSL/1.1.1k PHP/7.4.20 Server at localhost Port 804
Not Found

The requested URL was not found on this server.

controller:
Code:
<?php

class Onekey extends MY_Controller {

  public function __construct(){
      parent::__construct();

    $this->load->model('Onekey_model');
    }

    public function index(){
      $this->render('onekey', 'Onekey_model');
    }

    public function teste(){
      $this->render('teste', 'Onekey_model');
}
HTML
Code:
    ````<form method="post" action="teste" class="login_form" accept-charset="utf-8">
        <button>Entrar</button></form>````
Htaccess
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>


ErrorDocument 404 /index.php
</IfModule>
Config file
Code:
$config['index_page'] = 'onekey';
$config['base_url'] = 'http://localhost/';
Reply




Theme © iAndrew 2016 - Forum software by © MyBB