I have a website which has three different directories. I want to create a custom error page for each of the different directories. What i did is as follows:
<Directory "directory1"> ErrorDocument 404 /directory1/error.php </Directory> <Directory "directory2"> ErrorDocument 404 /directory2/error.php </Directory> <Directory "directory3"> ErrorDocument 404 /directory3/error.php </Directory>
Now, when I am using this code in my root level htaccess, internal server is the result which i am getting. Need help to sort the issue.