Welcome Guest, Not a member yet? Register   Sign In
Codeigniter3 EC2 remove index.php

(This post was last modified: 11-07-2017, 12:01 AM by enlivenapp.)

I'd suggest using `base_url` only on the home link.   unless you've added it to your base_url in config.php you might not have a trailing slash the way you have it written. (You should have a trailing slash, but not everyone does it.)

Try site_url() and have the link URI inside the () thusly:

PHP Code:
<li><a href="<?php echo base_url(); ?>pricing">Pricing</a></li // old 
// I suspect you're getting http://example.compricing

// try this
<li><a href="<?php echo site_url('pricing'); ?>">Pricing</a></li
// should give you http://example.com/pricing or http://example.com/index.php/pricing in your browser address bar depending on config.php -> $config['index_page'] =... 

Lastly, are you *sure* rewrite is enabled?

Messages In This Thread
Codeigniter3 EC2 remove index.php - by majortom84 - 11-06-2017, 01:28 PM
RE: Codeigniter3 EC2 remove index.php - by enlivenapp - 11-06-2017, 11:59 PM

Theme © iAndrew 2016 - Forum software by © MyBB