Sriharsha Kalluru
Sriharsha Kalluru

Reputation: 1823

Configure an Apache rewrite-rule to redirect 404 requests to a html file

I do have a requirement to rewrite all my 404 error pages to a html file. I tried with

ErrorDocument htdocs/error.html

But the pages are not getting redirected to it in case of no pages. I am using Apache to get data from JBOSS using Mod-JK.

Please help me on this.

Upvotes: 0

Views: 691

Answers (1)

codaniel
codaniel

Reputation: 5253

Create a .htaccess in the htdocs folder.

ErrorDocument 404 /error.html

Upvotes: 1

Related Questions