Welcome Guest, Not a member yet? Register   Sign In
domain and subdomain
#1

[eluser]Unknown[/eluser]
Hi, I installed codeigniter for a new project, this project uses the normal something.be and a mobile version m.something.be

In cpanel I already added this subdomain to the site, but no idea how to make this work with codeigniter.
I made a duplicate from index.php in something.be and copied this to m.something.be . When I now go to m.something.be, I see the site that is created underneath something.be. I understand that more configuration is needed, but could not find anything in the copied index.php file in m.something.be

I installed codeigniter as my php framework to connect with the database is a more safe environment, then when I did everything manually with php code. In this case the mobile and normal website should use the same database.

Or is there any other good idea according to what I am trying to do?
#2

[eluser]StevenSokulski[/eluser]
You may find something of use in this article by Phil Sturgeon:

http://philsturgeon.co.uk/blog/2009/06/H...ter-Set-up

It seems like the mobile site will re-use much of the logic while displaying it differently, at which point this should work.




Theme © iAndrew 2016 - Forum software by © MyBB