Link not working in codeigniter, base_url() displaying “”http://::1” why?

By | March 22, 2016

If you create a link in codeigniter as like below

in some case above link will redirect to blank page and most of the case it will be look like as below

To Solve this issue please add below line in your config.php

$config[‘base_url’] = ‘http://localhost/yourfoldername/’;

if it is blank above issue will come and it will not redirect.

  • adil

    not working its double the url like localhost/xyz/localhost/xyz/abc

    • Vasanthan pv

      Did u tried with out base-url. Or else please check the configuration settings.