Reputation: 5479
ErrorDocument 404 /index.php
what'are the line meaning and aim in the .htaccess file
Upvotes: 0
Views: 82
Reputation: 1475
That means if page not found (error 404) then user will redirected to index.php
Upvotes: 0
Reputation: 2994
This line redirects your visitors automatically /index.php in case of an 404 - Document not found
-error
Upvotes: 1
Reputation: 12121
Let me Google that for you... .htaccess Error Documents for Beginners
Upvotes: 6
Reputation: 31508
It means that all 404s (i.e., Not Found) are presented with the resource located at /index.php
(redirects to a local URL-path to handle the problem/error).
Further information in the Apache docs.
Upvotes: 1