0

I've tried several ways to remove the controller name in my url but nothing works

my url are like : www.mysite.com/controller/function and I just want www.mysite.com/function

I've tried the routes but the controller name still remain in my url :/ Any trick to do that properly ?

Thanks!

1
  • consider resolving question by accepting/adding the answer to it. Commented Dec 29, 2016 at 18:02

1 Answer 1

0

This will do it for you:

    $route['(:any)'] = "controller_name/$1";
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.