João Dias
João Dias

Reputation: 1108

.htaccess doesn't redirect to error page

I want my page to redirect to custom error 500 page. However, when I specify the page I want to be redirected to, the plain old 500 error page appears, and not mine.

I'm using this line to do it

ErrorDocument 500 /errors/error500.html

However if I specify HTML instead of the link, it works

ErrorDocument 500 '<div style="width:200px; margin:0 auto; text-align:center">Oooppss <br></div>'

What am I doing wrong??

Upvotes: 0

Views: 86

Answers (2)

Fred Wuerges
Fred Wuerges

Reputation: 1965

Set RewriteBase:

RewriteBase /

And make sure that the file /errors/error500.html exists.

Upvotes: 0

metalfight - user868766
metalfight - user868766

Reputation: 2750

What is your RewriteBase base ?

can you try complete path /usr/local/web/index.html ?

~K

Upvotes: 1

Related Questions