• mb

    (@ukparknews)


    Morning all.

    Ever since I changed my theme, I seem to be having a problem with my .htaccess file.
    About every couple of weeks the website doesn’t load – just gives an internal server error (500).

    The only way to remedy this is to delete the .htaccess file – as soon as this is done, the website loads again, and recreates the .htaccess file.

    The site will then run fine for another week or 2 until it happens over again.

    The website is https://www.ukparknews.co.uk

    Any help is appreciated. Thanks

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

    Can we view your .htaccess file? The name of your hosting provider could be useful as well.

    Thread Starter mb

    (@ukparknews)

    Yes
    Site is hosted by 34sp.com

    htaccess file (which WP generates in the residing folder):

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

    Thanks, that file looks legitimate.

    I would check whether your server is being overloaded. There is always some limit of simultaneous requests that any server can handle. When above that limit it gives 500.

    If you have a Linux box, please try

    grep ‘HTTP/1.1″ 500’ your-raw-access-log-for-this-month |wc -l

    Sure enough, replace ‘your-raw-access-log-for-this-month’ with the file’s name.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Keep Having to Delete .htaccess’ is closed to new replies.