0

I want to give route url with get parameters to static url like below

From "/web/view?id=10" To /about

Similarly "/web/view?id=11" To /contact

and so on.

1 Answer 1

1

You cannot provide routes based on get parameters in CodeIgniter. The best way to handle this is route /web/view to one method which then goes to /about and /contact based on $this->input->get('id'); See Codeigniter. How to pass parameters $ _GET in the route.php? for more info

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.