• Sometimes my site error occurred while accessing the link on the site:
    http://domain.com/%postname%/

    404 Error File Not Found
    The page you are looking for might have been removed,
    had its name changed, or is temporarily unavailable.

    and I have to reset permalinks in dashboard, the links to run normally, just repeat that and today I have to reset 04 times, I do not know why the error occurred. Why my WordPress installations are doing this intermittently.

    WP version 3.5, no using cache plugin, no security plugin.

    – .htaccess file:

    # Use PHP5CGI as default
    AddHandler fcgid-script .php
    # 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

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Have you tried to remove :

    # Use PHP5CGI as default
    AddHandler fcgid-script .php

    and leave this :

    # 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

    as it’s the default WordPress settings for Htaccess file.

    Thread Starter caokhoa

    (@caokhoa)

    Thanks riversatile!
    I’ll try your way.

    I think because I have configured PHP 5.2 (FastCGI) and the hosting server automatically switch back to the PHP 5.2 later period of time, should an error.I’ve seen it in the PHP Configuration in cPanel.

    Thread Starter caokhoa

    (@caokhoa)

    Error occurred:

    404 Error File Not Found The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

    I see the .htaccess file deleted data blank, despite that I have the data:

    # 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

    and I have to reset permalinks in dashboard, the links to run normally.
    I do not know why .htaccess empty deleted, hope you more experience to help me.

    Thank you!

    Normally, even if you do not have a .Htaccess file (or if it’s blank) in the root folder of your WordPress installation, once you choose a Permalink settings and click “Save”, WordPress re-build all the post’s Permalinks and generate automatically a .Htaccess file in the root folder of your WordPress installation.

    What sort of Permalinks settings did you choose ?

    Thread Starter caokhoa

    (@caokhoa)

    OK.

    Now if you have the Htaccess file like that :

    # 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

    From now, do not change anything.
    This should work all the time.

    Thread Starter caokhoa

    (@caokhoa)

    Thanks for your help.

    After, I have to resetting permalinks in dashboard, the links to run normally and .htaccess file like that:

    # 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

    I will continue to monitor it.

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

The topic ‘404 Error File Not Found (sometimes)’ is closed to new replies.