Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter corydharma

    (@corydharma)

    A friend helped me figure it out.

    The issue was the .htaccess file.

    https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory?fbclid=IwAR1CHT-49EJKFKHaheicVf8qLGpJZFmNZDmvirRin2xFwN9KCrGTMFd591E

    The htaccess file had both the code for the default install and the code for WP being in a sub directory. The advice @tomgoldberg gave was helpful, but was for sites with the default install of WP in the root directory. It says to make sure the .htaccess file has only this code.

    # 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

    The code for sides whose WP files are in a sub directory as suggested in the link above need the code below.
    The solution for my site was to only have this code below and not the code above. The issue was that it had both.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteCond %{REQUEST_URI} !^/my_subdir/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /my_subdir/$1
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteRule ^(/)?$ my_subdir/index.php [L]
    </IfModule>

    Thread Starter corydharma

    (@corydharma)

    I can’t get error logs to appear using debug.
    Cant get any errors on browser

    I tried using this no white screen https://github.com/stracker-phil/wp-no-white-screen
    Didn’t work.

    Looked at lots of posts about White screens of death but all of there fixes didn’t work or didn’t apply to my situation.

    PHP is updated, WordPress was reinstalled through WordPress Dashboard, All plug-ins are up to date. Turning off plugins doesn’t help. Switching deleting or reinstalling themes doesn’t work.

    htaccess file is fine.

    I have no idea what to do next. Anyone have any ideas?

    Thread Starter corydharma

    (@corydharma)

    The white screen of death still persists on all pages except for homepage.

    I have used FTP to check the server for the wp-config file and set these values to try to get a debug log but no error log has appeared.

    */
    define(‘WP_DEBUG’, true);
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, true );

    Thread Starter corydharma

    (@corydharma)

    Ok, I used the Yoast SEO Plugin >>Tools>>File Editor to edit the .htaccess

    I found this code

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?mindfulnessofdoom.com$
    RewriteCond %{REQUEST_URI} !^/wp/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /wp/$1
    RewriteCond %{HTTP_HOST} ^(www.)?mindfulnessofdoom.com$
    RewriteRule ^(/)?$ wp/index.php [L]
    </IfModule>
    # 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

    The Code from # BEGIN WordPress to # END WordPress is the same as the code suggested. I replaced it anyway to make sure there was no spacing or punctuation errors but the problem persists.

    If I remove all the code and only use the code suggested, the whole site goes to the white screen homepage included, so it seems that it hasn’t fixed the issue.

    Have I done something wrong? Or is there some other issue happening here other than a .htaccess problem?

    Thanks for any assistance.

Viewing 4 replies - 1 through 4 (of 4 total)