ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Want to create dynamic subdomain in codeigniter?

March 16, 2012 9:02am

Subscribe [4]
  • #1 / Mar 16, 2012 9:02am

    Pathik Dswt

    1 posts

    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:

    i Want <a href="http://www.username.mysite.com/login">http://www.username.mysite.com/login</a>
    or
    <a href="http://www.username.mysite.com/category">http://www.username.mysite.com/category</a>

    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 / Mar 16, 2012 6:16pm

    Luis ACE

    23 posts

    Hi Pathik,

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

  • #3 / Mar 19, 2012 5:35am

    fivefinger-bd

    18 posts

  • #4 / Aug 17, 2012 2:12am

    Bigil Michael

    275 posts

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases