![]() |
CI 3.0.3 site_url Not Working On Different Port - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: CI 3.0.3 site_url Not Working On Different Port (/showthread.php?tid=63725) |
CI 3.0.3 site_url Not Working On Different Port - mertdogan - 12-03-2015 I have a site on my localhost:86 . Before upgrading from CI 3.0 to 3.0.3 it can detect port of my site from site_url('default/index') but after upgrade; it can't detect port number. RE: CI 3.0.3 site_url Not Working On Different Port - kenjis - 12-03-2015 Set $config['base_url']. See http://www.codeigniter.com/user_guide/installation/upgrade_303.html#step-2-make-sure-your-base-url-config-value-is-not-empty RE: CI 3.0.3 site_url Not Working On Different Port - mertdogan - 12-03-2015 (12-03-2015, 03:17 AM)kenjis Wrote: Set $config['base_url']. When i set it, it still returns false. Before upgrade to 3.0 to 3.0.3, site_url('index/xxx') function returned as http://localhost:86/index.php/index/xxx.html but after upgrade it returned as http://localhost/index.php/index/xxx.html RE: CI 3.0.3 site_url Not Working On Different Port - seasenx6 - 12-03-2015 You must set $config['base_url'] = 'http://localhost:86/'; or http://forum.codeigniter.com/thread-63576-post-325579.html#pid325579 RE: CI 3.0.3 site_url Not Working On Different Port - InsiteFX - 12-06-2015 You may also need to fill in the $config['index_page'] = 'index.php'; RE: CI 3.0.3 site_url Not Working On Different Port - mertdogan - 12-11-2015 (12-06-2015, 04:25 AM)InsiteFX Wrote: You may also need to fill in the $config['index_page'] = 'index.php'; I have revert my site to previous version. Thank you for your reply but i can't test it yet. I will do it and write feedback; Thanks again. |