Friday, April 26, 2013

Custom access denied error page for sites/default/files url in Apache

User will get access denied page after setting up standard codes in htaccess file of site/default/files folder. This error page can be customized by adding our used defined html page to that.

The page can be showed by redirecting from access denied default page by adding the below line in htaccess file.
ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
It redirects and shows the page from Apache's default error page where user either can modify the code of that file or add new custom html file.

No comments:

Post a Comment