URL redirect fail?

Hi guys,

I have an url below.
http://localhost/ci/ci3-codes-mastery3/login?redirect=

Now in this page, it has a menu and inside a menu there are links names.
For instance when I clicked one of the links names called “masters”

It redirect to this url.
http://localhost/ci/ci3-codes-mastery3/login?redirect=front%2Fmasters

It suppose to redirect to this url below,
http://localhost/ci/ci3-codes-mastery3/front/masters

So can anyone please guess the reason?

What is wrong with this?

Thanks in advance.

You can see live demo here.

http://www.codesmastery.com/

try clicking the “masters” link inside the menu

I’m expecting it should redirect to this url below.
http://www.codesmastery.com/front/masters/

But instead it redirect to.
http://www.codesmastery.com/login?redirect=front%2Fmasters

What do you think is the reason here?

thanks in advance.

What is in the .htaccess file to rewrite the redirect?

Okay here is the .htaccess

# MAKE SURE TO LEAVE THE DENY LIST AT THE TOP OF THE FILE !!!
# BEGIN DENY LIST --
# END DENY LIST --
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

By the way, I’m using CodeIgniter 3.6
and I’m using http://community-auth.com/ as my user authentication.

thanks in advance.

that doesn’t contain anything to rewrite the http://www.codesmastery.com/login?redirect=front%2Fmasters to http://www.codesmastery.com/front/masters/

So what should I do?

Show me how to rewrite it?

thanks

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.