SuperTron SuperTron - 1 year ago 111
Apache Configuration Question

Codeigniter URL Redirect WITHOUT adding index.php

I'm working on a site with a few controllers, and have configured my server to redirect requests for
using some simple regular expression matching in the apache config. Now, I am trying to get one of my controllers to redirect to another one, but without adding the
to the URL, which is what the
function does. Is there an easy way to do this in codeigniter? Thanks beforehand!

Answer Source

You can use redirect. It only adds index.php if it is configured as your index page.

So, check your index_page configuration. It should be an empty string:

$config['index_page'] = '';

File: app/config/config.php

More info: [Updated Version]

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download