views:

23

answers:

1

Hi, I've set it in htaccess so it won't display the contents of directories, rather it will just show the usual Forbidden page.

how can i either:

show a certain page or redirect to a certain page

rather than just this default "Forbidden" page?

thanks

+1  A: 

Use the ErrorDocument directive of Apache to display a custom error document.

The appropriate error code for Forbidden is 403.

reko_t
Nice to see a link to Apache documentation. Most users don't even think it exists ;-)
Álvaro G. Vicario