We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

404 Not Found error when deleting an entry

Development and Programming

nuvole's avatar
nuvole
14 posts
9 years ago
nuvole's avatar nuvole

I’ve built several sites with EE but I’ve never had this error. In my last project, if I try to delete an entry (no matter from which channel) I receive a Not Found Page.

Not Found

The requested URL /system/index.php was not found on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

It happens only when I try to delete, not when I publish or edit an entry.

I notice, however, that the entry is eventually deleted, but I can’t give the client a site with this error and tell him to pretend nothing happened.

What should I do?

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
9 years ago
Ingmar Greil's avatar Ingmar Greil

Can you rule out any system-side rewriting issues (in .htaccess, e.g.)? Seems a likely culprit.

       
nuvole's avatar
nuvole
14 posts
9 years ago
nuvole's avatar nuvole

I have this .htaccess for removing index.php:

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

        # Removes index.php from ExpressionEngine URLs
        RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
        RewriteCond %{REQUEST_URI} !/system/.* [NC]
        RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

        # Directs all EE web requests through the site index file
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.