How to redirect or show a page rather than "Forbidden" when i have directory listings off (htaccess/unix) How to redirect or show a page rather than "Forbidden" when i have directory listings off (htaccess/unix) unix unix

How to redirect or show a page rather than "Forbidden" when i have directory listings off (htaccess/unix)


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

The appropriate error code for Forbidden is 403.