3

I've removed the index.php throught this code:

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ /leet/index.php/$1 [L]

But when I submit form <?=form_open('signup');?> and the page refreshes the url changes its value to localhost/ci/index.php/signup.

Is it possible to remove it?

3
  • 1
    I answered with another thing in mind, so it was a mistaken answer...to be deleted. Commented Sep 29, 2012 at 14:49
  • I've removed index.php successfully, but only when a form is submitted in the url is inserted index.php. (хехе, от България си ^_^) Commented Sep 29, 2012 at 14:51
  • 2
    you should also remove index.php references from the config.php file - base_url and index_page, I don't remember exactly which was, but I think the form_helpers use these values to construct urls. (да :) Commented Sep 29, 2012 at 14:52

2 Answers 2

16

You must check your config.php inside your application\config directory, as you can see, locate your

$config['index_page'] = 'index.php';

Change that to

$config['index_page'] = '';

I hope it helps!

Sign up to request clarification or add additional context in comments.

Comments

0

Use it like this:

<?= form_open_multipart(base_url().'/controller_name/function_name') ?>

I hope it helps you.

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.