Welcome Guest, Not a member yet? Register   Sign In
URI Segment and Localhost
#1

[eluser]d3xt3r[/eluser]
Guys

Sorry a bit of a newbie question, I have my application on stage.domain.com but when on local host it doesnt work becuse I am using http://localhost/mydomain.

So when I use this->uri->segement(2);

On my local machine I get "index"
On my web server I get "35" - This is the ID of the record and what I want to access.

What is the best way around this, I thought this->uri->segement should look at the value specifed in $config['base_url'] to work out where the segement should be.

Can anyone help.

Cheers

Dexter
#2

[eluser]d3xt3r[/eluser]
Not sure this will make a difference but I have set $config['uri_protocol'] = "AUTO
#3

[eluser]d3xt3r[/eluser]
This has now been resolved, I had made a mistake after URI Routing.




Theme © iAndrew 2016 - Forum software by © MyBB