I have a new website wherein I have installed codeigniter (latest).
Now for testing I have a form in my default page http://www.example.com . I have removed the index.php from the url with the help of .htaccess . Now if I submit the form , I have redirected it to http://www.example.com/controller_name/function_name . The URL shows perfect as I have written
<form action="<?php echo base_url(); ?>controller_name/function_name" method="post" >
Plus I have my base_url as http://www.example.com .
Now the problem is, after redirecting to http://www.example.com/controller_name/function_name it throws a no page found error. But I have written echo "test"; in that function .
Could anyone help me out in figuring the issue.
For my setup – which also modified htaccess to remove index.php – I had to set my config file to
and I am using Request URI:
Before changing these things I was also getting a page not found. Try this and see if that works for you.