Welcome Guest, Not a member yet? Register   Sign In
URL link, wrong redirection?
#1

Hi guys

this is very easy but I can't figure it out.I created this link below in CI.
Code:
<?php echo anchor('jaz_auth_front/register_form', 'Register', 'title="Register"'); ?>

My default controller in route is jaz_auth_front.

Now when I click that link code above it redirect me to /localhost/xampp/
Why is this?

By the way the method register_form in jaz_auth_front looks like this below,
Code:
    function register_form()
    {

        //$this->data['body_content'] = $this->load->view('register_form', $this->data, TRUE);
        //$this->load->view('register_form');
        echo 'hello test';
    }

Any help?, thanks in advance.
Reply
#2

Okay understand now,
the .htaccess codes below doens't work.
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    # Remove index.php from URL
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L]
</IfModule>
Reply
#3

Try changing RewriteRule .* index.php?/$0 [PT,L]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB