Monofuse
Monofuse

Reputation: 827

Codeigniter Subdomain folder added to end of Url

If my root website www folder is /

and the subdomain folder is /subdomain

I can either get to the the address using one of the following

Now if I access the site using the http://subdomain.website.com, The codeigniter treats the base_url() as http://subdomain.website.com/subdomain is there away of stripping the subdomin from the end if the subdomain segment has the same name?

I could strip it on a case by case basis, but I'm hoping there is a way to do this using one of the system configuration files.

Upvotes: 0

Views: 302

Answers (1)

JobSam
JobSam

Reputation: 317

Whatever you are asking, has something to do with setting up dynamic base url in codeigniter. They have been answered here and also here. Hope you find it helpfull.

Upvotes: 1

Related Questions