Welcome Guest, Not a member yet? Register   Sign In
CI 3.0.3 site_url Not Working On Different Port
#1

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.
I'm a person from Turkiye. I don't know English very well and i can't write what i want to say sometimes (as now happenes  Blush ).

If i write something by mistake; please don't distress it and try to understand what i want to write.
Reply
#2

Set $config['base_url'].

See http://www.codeigniter.com/user_guide/in...-not-empty
Reply
#3

(12-03-2015, 03:17 AM)kenjis Wrote: Set $config['base_url'].

See http://www.codeigniter.com/user_guide/in...-not-empty

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
I'm a person from Turkiye. I don't know English very well and i can't write what i want to say sometimes (as now happenes  Blush ).

If i write something by mistake; please don't distress it and try to understand what i want to write.
Reply
#4

(This post was last modified: 12-03-2015, 06:31 AM by seasenx6.)

You must set $config['base_url'] = 'http://localhost:86/';

or

http://forum.codeigniter.com/thread-6357...#pid325579
Reply
#5

You may also need to fill in the $config['index_page'] = 'index.php';
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(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.
I'm a person from Turkiye. I don't know English very well and i can't write what i want to say sometimes (as now happenes  Blush ).

If i write something by mistake; please don't distress it and try to understand what i want to write.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB