Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author John Turner

    (@johnnytee)

    Hi,

    Yes it does work in a sub folder. Make sure you have you site url correctly set under settings and htaccess set up correctly. https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    A misconfigured subfolder install can make the WordPress function is_user_logged_in return false. https://codex.www.ads-software.com/Function_Reference/is_user_logged_in

    This is the function the plugin uses to either show the site or the coming soon page.

    Thread Starter eaglejohn

    (@danielbenjamins)

    I think I set everything correctly

    My WP-settings:
    WordPress Address (URL): https://www.domain.com/wp
    Site Address (URL): https://www.domain.com

    index.php in root folder:
    require('./wp/wp-blog-header.php');

    index.php in /wp folder:
    require('./wp-blog-header.php');

    .htaccess file in root folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    php_value memory_limit 128M

    .htaccess file in /wp folder:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    php_value memory_limit 128M

    Any suggestions?

    Plugin Author John Turner

    (@johnnytee)

    Add the line:

    var_dump(is_user_logged_in());

    to the file inc/config.php on line number 58.

    This should output true when you are logged in and false when not. If it returns false when you are logged in then something is still not configured properly.

    Thread Starter eaglejohn

    (@danielbenjamins)

    After adding the code on line 58 the output bool(false) is displayed when logged in and logged out. Like you say there’s probably something not configured properly, but I can’t figure out what… :/

    Plugin Author John Turner

    (@johnnytee)

    Sorry, I’m not sure what it is. I’ve seen someone else with this issue and I can’t remember how they solved it ??

    P

    (@paulsanduleac)

    Same issue here, any fix?

    P

    (@paulsanduleac)

    For me it started working after I refreshed my permalinks.

    Hi, has anybody got this working yet? I’ve tried refreshing the permalinks to no avail. I have the same directory setup as the first poster. Any help would be superb!

    Plugin Author John Turner

    (@johnnytee)

    If you have a subfolder install, make sure you have follow these instruction.

    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    Otherwise post a more detailed description of your issuer.

    Hi John, I followed those instructions exactly and it worked fine. The problem is that even though I am logged in I still see the Coming Soon page instead of the actual site. What do you think? Thanks.

    Plugin Author John Turner

    (@johnnytee)

    This mean then that the WordPress function is_user_logged_in() is not working properly
    https://codex.www.ads-software.com/Function_Reference/is_user_logged_in

    This is caused by a mis-configure WordPress or another plugin breaking it.

    Thanks John, I deleted the other 2 plugins I had running and it worked. Cheers.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Does not work when WP is in a subfolder’ is closed to new replies.