Reputation: 41
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
Upvotes: 3
Views: 1364
Reputation: 56430
Use the ErrorDocument directive of Apache to display a custom error document.
The appropriate error code for Forbidden is 403.
Upvotes: 1