Custom 403 page is not displayed for wildcard characters

Hi DK,

Nobody tried that URL, I just stumbled upon it while testing my site. I was just trying to figure out why my custom 403 page is displayed for regular 403 situations (i.e. when I try to access a forbidden directory), but when I use the wildcard character in the URL, the default 403 page of the server is displayed, not my custom 403 page.

@Elizine, Putting the 403 error directive in the httpd.conf file worked, thanks for the tip. It seems when there is a wildcard character in the URL, the local .htaccess file in the root directory does not handle the error, the main configuration file (httpd.conf) does. By the way, you assumed that I have an “includes” folder, no idea why you got that impression.