fix
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
|
||||||
|
#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]
|
||||||
|
|
||||||
|
#When your application folder isn't in the system folder
|
||||||
|
#This snippet prevents user access to the application folder
|
||||||
|
#Submitted by: Fabdrol
|
||||||
|
#Rename 'application' to your applications folder name.
|
||||||
|
RewriteCond %{REQUEST_URI} ^application.*
|
||||||
|
RewriteRule ^(.*)$ /index.php?/$1 [L]
|
||||||
|
|
||||||
|
#Checks to
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ index.php?/$1 [L]
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule !mod_rewrite.c>
|
||||||
|
# If we don't have mod_rewrite installed, all 404's
|
||||||
|
# can be sent to index.php, and everything works as normal.
|
||||||
|
# Submitted by: ElliotHaughin
|
||||||
|
|
||||||
|
ErrorDocument 404 /index.php
|
||||||
|
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
@@ -1,26 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||||
|
|
||||||
class Auth extends CI_Controller {
|
class Auth extends CI_Controller {
|
||||||
|
|
||||||
/**
|
public function index() {
|
||||||
* Index Page for this controller.
|
//$this->load->view('home/home');
|
||||||
*
|
echo "START LOGIN";
|
||||||
* Maps to the following URL
|
}
|
||||||
* http://example.com/index.php/welcome
|
|
||||||
* - or -
|
public function newuser() {
|
||||||
* http://example.com/index.php/welcome/index
|
//$this->load->view('home/home');
|
||||||
* - or -
|
echo "START NEW USER";
|
||||||
* Since this controller is set as the default controller in
|
}
|
||||||
* config/routes.php, it's displayed at http://example.com/
|
|
||||||
*
|
public function resetpass() {
|
||||||
* So any other public methods not prefixed with an underscore will
|
//$this->load->view('home/home');
|
||||||
* map to /index.php/welcome/<method_name>
|
echo "START RESET";
|
||||||
* @see https://codeigniter.com/user_guide/general/urls.html
|
}
|
||||||
*/
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
//$this->load->view('home/home');
|
|
||||||
echo "tokslaw";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
<li><a href="#pricing" class="smoothscroll">PLANS</a></li>
|
<li><a href="#pricing" class="smoothscroll">PLANS</a></li>
|
||||||
<li><a href="#download" class="smoothscroll">DOWNLOAD</a></li>
|
<li><a href="#download" class="smoothscroll">DOWNLOAD</a></li>
|
||||||
<li><a href="#contact" class="smoothscroll">CONTACT</a></li>
|
<li><a href="#contact" class="smoothscroll">CONTACT</a></li>
|
||||||
<li style="background-color: #ccffcc;"><a href="/login" class="smoothscroll">LOGIN</a></li>
|
<li style="background-color: #ccffcc;"><a href="/auth" class="smoothscroll">LOGIN</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user