• Hello:

    I have a subscriber website (not-WP) which is installed in the root directory of my site. I also have a WP installed in a different directory which has a landing page program that I’d like non-logged-in users to see initially. Is it possible to write the .htaccess file so that the WP landing page is seen initially by non-registered users and allow registered user to see their subscriber page when they go to the root domain? Also if it’s necessary to move the subscriber to its own directory, is it possible to have the user address only show as “http://mysite.com”?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Dardango,

    You can set up a conditional within the same homepage. There is a built in WordPress function that checks if the current user is logged in or not. Using that function you could set up your conditionals to display two seperate homepages.

    Example

    <?php
      if ( is_user_logged_in() ) {
        // logged in user homepage
      } else {
        // non logged in user homepage
      }
    ?>

    So really there is no need to have multiple installations to display multiple pages to logged in and non-logged in users.

    Hopefully that helps.

    Evan

    Thread Starter Dardango

    (@dardango)

    Thanks, Evan.
    The slight problem is that the subscriber site is not WP. Would this still work?

    No, it wont. I thought that both sites were running on WP . If the other site is not WP I’m not sure I can really help out :<

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can this be done?’ is closed to new replies.