WordPress.org

Ready to get started?Download WordPress

Forums

Requested URL not found - Tempory Error Message (13 posts)

  1. Nick McBurney
    Member
    Posted 1 year ago #

    Hi,

    I have noticed an issue with the subpages in my website, when I try and load a sub page i get the following error message:

    Not Found
    The requested URL /shipping-services/ was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The error can be solved (temporarily) by saving the permalink settings again, im not sure what is causing this as I’ve not updated plugins etc.

    Website can be seen here: http://www.tuscorlloyds.com - I have just resaved permalink settings so is working at time of writing.

    Any advice would be much appreciated!

    Thanks
    Nick

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Since the error no longer exists, there's not a lot we can do to help.,

  3. Nick McBurney
    Member
    Posted 1 year ago #

    Any ideas on what could be causing this? i dont really want to let it go down whilst I can keep it working but need a permanent solution

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    The only thing that springs to mind is that your .htaccess file is being deleted or damaged intermittently.

  5. Nick McBurney
    Member
    Posted 1 year ago #

    Hi Esmi,

    Ive rebuilt my htaccess and seems to be workig OK but ill let you know if I notice anymore isues

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    If it happens again, check your .htaccess file immediately.

  7. Nick McBurney
    Member
    Posted 1 year ago #

    Yeah this error is still happening, looks like something is happening to the htaccess file.

    It is being replaced by a default htaccess with just 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

    Any ideas what could be causing the htaccess file to be affected the way it is?

    thanks

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    That .htaccess file looks just fine to me. It's a bog-standard WP .htaccess file for a site (in the root domain) using custom permalinks. What makes you think it's not correct?

  9. Nick McBurney
    Member
    Posted 1 year ago #

    I did have some other code in the htaccess for security reasons so the htaccess which I coded has been replaced by this default

  10. esmi
    Forum Moderator
    Posted 1 year ago #

    Were the other rules above or below the WordPress block?

  11. Nick McBurney
    Member
    Posted 1 year ago #

    Below.

    thanks for your quick responces btw :)

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    OK. General rule of thumb: always add any custom rules above the WordPress rewrite block. That block should always be the last entry in your .htaccess file.

  13. Nick McBurney
    Member
    Posted 1 year ago #

    OK thanks, ive decided ill leave the .htaccess for now, just so I can see if it happens again + if not ill try putting the code back in above the WordPress rewrite stuff.

Topic Closed

This topic has been closed to new replies.

About this Topic