Support » Fixing WordPress » Default WP .htaccess file uses HIGH CPU resources

  • Does anyone have any solutions as to why the default htaccess file uses 70-93% of my dedicated servers CPU resources?

    removing the file from server not only reduces my CPU usage to 1-2%, but makes my site load 100x faster without it (home page), but when i load an inner page, a 404 error appears. I resaved my permalinks, no .htaccess file was created.

    Any help appreciated.

    Thanks guys

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    There isn’t really anything in the default .htaccess file which would use up server resources itself.

    What is in the file when it’s using so many resources?

    Thread Starter Loz702

    (@loz702)

    Well, I’m sorry, I can prove it. I can prove removing the htaccess file, my site loads 100 times faster than with it. But of course, I can’t load nothing but the home page.

    I told you whats in the file mate… its the standard htaccess file:

    # 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

    Can you kindly give me a solution as above code does not work.

    Thank you

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    It’s not the code itself, but something running through the code. The rewrite rules are just that; rules, they don’t execute anything.

    This is more than likely a plugin or theme conflict. Please attempt to disable all plugins, and switch to the default Twenty Seventeen theme. If the problem goes away, enable them one by one to identify the source of the problem.

    If you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter Loz702

    (@loz702)

    Nope, its not a plugin issue dude. or the theme. worked fine before. now it dont.

    and ive done all those step by step processing. im not new to WP, been using them for about a decade now…

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Hm, ok, those are the rewrite rules that WordPress has been using for 15 years too. Do you recall what you were last doing before suddenly “now it dont”?

    Also, can you absolutely confirm that the issue continues using a fresh installation of WordPress 4.9.6 with no plugins and the default Twenty Seventeen theme? You should be able to spin up a subdomain to test that separately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default WP .htaccess file uses HIGH CPU resources’ is closed to new replies.