Codeigniter's index.php appears after htaccess modification -
so here's thing, i've done tutorial thing on ci, have done modification in .htaccess remove index.php in url, in these case, when viewing records index.php doesn't appear, when seek create new record, index.php appeared, i'm confused why appeared, i've done .htaccess so,
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l]
here screenies,
viewing record:
creating new record:
after creation:
im confused why index.php appeared, i've did changes on .htaccess. missing something? please share inputs
edit followed inquire me on user guide.
create news item<?php echo validation_errors(); ?> <?php echo form_open('sample_controller/sample_create') ?> <label for="title">title</label> <input type="input" name="title" /><br /> <label for="text">text</label> <textarea name="text"></textarea><br/> <input type="submit" name="submit" value="create news item" /> </form>
change sample_controller/sample_create
/sample_controller/sample_create
or @cballou reply updating config avoid problem in first place.
(in config/config.php set $config['index_page'] = ''
)
php codeigniter
No comments:
Post a Comment