S
S
SKRSKR2016-04-08 15:05:36
Apache HTTP Server
SKRSKR, 2016-04-08 15:05:36

How to change the 403 Forbidden page on Apache to your own?

How can I replace the 403 Forbidden page, on Apache under Debian, with my own, in HTML/PHP format? And is this even possible?
Since you need to install a stub on the site, and so that it is described what to do in order to enter the site, and to give the code 403

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kpa6uu, 2016-04-08
@SKRSKR

At the root of the site, you need to create a file called .htaccess and enter the following line into it, indicating the file that is called when an error occurs 403
ErrorDocument 403 /error/403.php
In the same way, you can display a regular message, a la
ErrorDocument 403 '403 error'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question