enjoylife
enjoylife

Reputation: 5479

a line in .htaccess file

 ErrorDocument 404 /index.php

what'are the line meaning and aim in the .htaccess file

Upvotes: 0

Views: 82

Answers (4)

Eugene Burtsev
Eugene Burtsev

Reputation: 1475

That means if page not found (error 404) then user will redirected to index.php

Upvotes: 0

Ham Vocke
Ham Vocke

Reputation: 2994

This line redirects your visitors automatically /index.php in case of an 404 - Document not found-error

Upvotes: 1

leek
leek

Reputation: 12121

Let me Google that for you... .htaccess Error Documents for Beginners

Upvotes: 6

jensgram
jensgram

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

Related Questions