Hello,
I have multiple sites on my account, two of them are sites which are placed in subdomains and have a multi-hosted domain. I'd like to have custom error pages for each of those sites. I know how to do this.
I could place a .htaccess file in the root of each site (for the main site in the 'public_html' folder and for the subdomains 'public_html/subdomain'). What I was wondering is the following. Is it possible to place the custom error pages outside the root? So in the same folder as 'public_html' which would be '/home/username/error_pages'. If so, how do I link to that in the .htaccess file?
I already tried the following for the custom error pages for a subdomain:
ErrorDocument 404 ../../error_pages/404.html
ErrorDocument 404 home/username/error_pages/404.html
for the custom error pages for the root (public_html) I tried this:
ErrorDocument 404 ../error_pages/404.html
ErrorDocument 404 home/username/error_pages/404.html
None of them worked, do I have to place my error pages in the root? I'd like them to be outside of it and all error pages of every site together in one folder.
Thanks in advance!


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks