Welcome Guest, Not a member yet? Register   Sign In
Want to create dynamic subdomain in codeigniter?
#1

[eluser]Unknown[/eluser]
In my site i want to add an functionality for user to use their username with domain.

Like in codeigniter right now i want to give the user to use their own url to login in site and do other stuff.

For eg:

Code:
i Want www.username.mysite.com/login
or
Code:
www.username.mysite.com/category

so here the user can login with their credential and add the category. so i have two controller in my site with login and category.

So how to do this with the routes Or .htaccess.
#2

[eluser]Luis ACE[/eluser]
Hi Pathik,

You would use htaccess to accomplish this goal. you can take a look at this blog post
Dynamic sub-domains
#3

[eluser]fivefinger-bd[/eluser]
See this post

codeigniter dynamic subdomain
#4

[eluser]Bigil Michael[/eluser]
see this link
http://phpcreating.blogspot.in/2010/07/c...g-mod.html




Theme © iAndrew 2016 - Forum software by © MyBB