要创建动态的子域在codeigniter? [英] Want to create dynamic subdomain in codeigniter?
问题描述
在我的网站,我想补充的功能为用户使用自己的用户名与域。
In my site i want to add an functionality for user to use their username with domain.
就像在codeigniter现在我想给用户使用自己的网址,网站登录和做其他的东西。
Like in codeigniter right now i want to give the user to use their own url to login in site and do other stuff.
有关,例如:
我想 www.username.mysite.com/login
或 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.
那么如何与路由或htaccess的做到这一点。
So how to do this with the routes Or .htaccess.
推荐答案
@Nilay帕特尔
下面是一个完美的链接,你都要求很高。
Here is a perfect link, as what you are demanding.
无法找到更好的东西,然后这一点。
Couldn't find anything better then this.
这篇关于要创建动态的子域在codeigniter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!