• So a multisite I built was running very slowly. I tried to install W3Total Cache to help the issue, but that made the site show a 500 Internal Server Error. I set up the site with GoDaddy, so I gave them a call to figure it out. Of course, it was an issue with the htaccess. So, the guy ends up doing something to the htaccess file. He renames it .htaccess.bak and leaves it like that. I remove all remnants of W3Total Cache from my server. Now, my main domain works, but all of the multisites return a 404 error. I can’t access the dashboard or frontend of any of them. I updated the permalinks for the main website, but that doesn’t do anything for the multisites. I called GoDaddy back, but they couldn’t help me with anything.
    Please help! Anyone! Time is of the essence!

    https://www.getalittletwisted.com
    (it still moves like a tortoise)

Viewing 12 replies - 1 through 12 (of 12 total)
  • If you rename the .htaccess file (again) to .htaccess.bak2, you still should be able to log into the admin console of your main site. You should re-create your .htaccess file which should be availabe in the console.

    Thread Starter aarondub84

    (@aarondub84)

    I am able to log in to the admin area. The big issue is getting the 404 error on all of the multisite other than the main domain. Each time I attempt to rename the htaccess file, it shows an internal server error. And it is still horribly slow.

    When you log into your main site, go to the Network setup menu which will show you .htaccess settings – https://yoursite.domain.com/wp-admin/network/setup.php

    Create a brand new .htaccess file with those settings.

    Thread Starter aarondub84

    (@aarondub84)

    Here are the settings it gave me on that page.

    WP-CONFIG:
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.getalittletwisted.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    HTACCESS:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    I pasted the wp-config code into the wp-config file, and I created a new htaccess file with the above code. Now I am getting an internal server error on all multisites, which I feel is a step forward considering I have been getting a 404 error on all the subsites until now. I just need to figure out why the internal error is showing up.

    W3TotalCache may still be causing problems. Did you delete the W3TotalCache plugin?

    Thread Starter aarondub84

    (@aarondub84)

    I searched the public_html folder for all occurences of “W3” and it said there were none. Could GoDaddy make it go this slow? I have never experienced such a slow site.

    W3TotalCache will be in the plugins directory:
    <WP base>/wp-content/plugins/w3-total-cache

    It is possible that another plugin is causing problems. One solution is to rename your plugins directory to something like ‘plugins.bak’

    For further debugging you should turn on debugging in wp-config.php:

    define(‘WP_DEBUG’, true);

    Thread Starter aarondub84

    (@aarondub84)

    I removed that folder and all other occurrences of the W3 plugin yesterday. I renamed the plugins folder and that did not make a difference. Changing the theme did not make a difference. I can’t figure this out.

    Thread Starter aarondub84

    (@aarondub84)

    Now I get the following message when I visit a subsite:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /home/twistedjranch/public_html/wp-includes/option.php on line 172

    Thread Starter aarondub84

    (@aarondub84)

    The site was just working well for about thirty minutes. The speed was much better and all of the sites were working. Now, it has returned to it’s ridiculously slow speed and the sub-sites are not showing up. What is going on?!

    IMO, you should rename your plugins directory (and leave it that way till you fix the problem) and change your theme to a default/standard one. Try that for a while and see if it fixes your problem.

    Note that the memory error is due to php consuming memory to store WP stuff. 67Mb is a lot already. You can increase it, but IMO it is due to another issue – https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    W3TC also puts in files like advanced-cache.php in wp-content so check for those.

    Out of memory. That’s fun. What kind of hosting plan are you on and how many plugins are you running?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multisites returning 404 error after htaccess change’ is closed to new replies.