When I create a .htaccess file with the text such as ErrorDocument 403 /content/error-docs/403.html and ErrorDocument 404 /content/error-docs/404.html it doesn't work. The file in ubuntu desktop shows "Error" within the icon of the file. However, other .htaccess files work just fine and show "Option" in the icon of the file. Why is it doing this?
I've tried creating the file through terminal with sudo nano, I've tried creating the file with gedit, nothing. It just refuses to work of the text ErrorDocument is in it.
If it has Options All -indexes, for example, it works perfectly. Also worth noting that no .htaccess file works in /var/www, but .htaccess works in any subfolder like /var/www/content/. Except for ErrorDocument, that still doesn't work.
Am I missing something here? Can't figure this out.
EDIT: I managed to fix it, it was just mere folder permissions screwing up.