Welcome Guest, Not a member yet? Register   Sign In
Different URI segments because subfolder?
#1

(This post was last modified: 07-13-2017, 02:32 PM by fmertins.)

Hi, I'm using CI 3.0.6 with PHP 7.0.x and my URL is:

Code:
http://xyz.hospedagemdesites.ws/homologacao/index.php

The "/homologacao" is a subfolder. When doing this:

PHP Code:
$this->uri->segment(1

I get "homologacao", is that right? Because, it came *before* the front controller index.php...

And on my dev environment, same CI and PHP but at URL:

Code:
http://localhost/xyz/public_html/index.php

When running the same $this->uri->segment(1) I get an empty string, why...?  Confused
Thank you!
Reply


Messages In This Thread
Different URI segments because subfolder? - by fmertins - 07-13-2017, 12:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB