WordPress.org

Ready to get started?Download WordPress

Forums

Home page with registeration and login and then directing it to subdomains (4 posts)

  1. skarakas
    Member
    Posted 2 years ago #

    Hi everyone,

    I want to create a static home page that has no content but only the login form and registeration option. After the user logs in, another page that only has 5 big buttons will come up and these 5 buttons will direct the user to 5 different subdomains. So another problem is, users should not be able to access that 5 buttoned page and also the 5 subdomains unless they login to that main page.
    Example will be like:
    Logining in at example.com, then being directed to example.com/index.html, then accessing to (a,b,c,d,e).example.com
    However, if the login process fails, no one should be able to access the index page or the subdomains. Please help!

    Thanks in advance.

  2. That can all be done. Just make a static font page with a login form. There's PHP code out there, and you can redirect logins anywhere you want: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect

    Are you asking someone else to code all this for you?

  3. skarakas
    Member
    Posted 2 years ago #

    Thanks for the response.

    I am trying to do the whole work. Actually I did not use so much coding until this point, but I could progress a lot.

    I checked the link you've sent me. However, I think that the most important thing I'm trying to do is missing there.

    The crucial thing here is that the subdomains and that index page(so actually whole content) of my site will only be available for my users. So if someone tries to access directly to a.example.com(example from my first post), I must direct him/her to my login and registeration page, so if he/she wants to access a.example.com, either will login or register. Otherwise will have to leave :) Am I clearer now?

    So if you understood what I'm trying to do, maybe you can tell me what should I do step-by-step.

    Thanks for your attention.

  4. The crucial thing here is that the subdomains and that index page(so actually whole content) of my site will only be available for my users.

    Two things. First, users are added to the network, NOT sites, when they register, so you'd need to use a plugin like http://wordpress.org/extend/plugins/multisite-user-management/ to auto-add them.

    Second, just grab a standard membership plugin like http://wordpress.org/extend/plugins/members to restrict the site to members only :)

    Or just code your theme to check 'is_user_logged_in()'

Topic Closed

This topic has been closed to new replies.

About this Topic