.htaccess 403 redirects not working
I have this code in my .htaccess file:
Options All -Indexes
order deny,allow
deny from all
ErrorDocument 403 /www/landing.html
<Files landing.html>
allow from all
</Files>
<Files styles.css>
allow from all
</Files>
<Files prefixfree.min.js>
allow from all
</Files>
which is located on my server at /www. There is an index.html,
loading.html, and a .htaccess in this folder, then the css and js files
are in their respective subfolders. The site is hosted on Hostgator.
When I load up my site, I get this error:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
So it's not finding the document. If I change my code to ErrorDocument 403
/loading.html then my site goes down entirely and the loading icon just
spins without loading anything. downforeveryoneorjustme.com also reports
that it is down. Is there something I'm doing wrong?
No comments:
Post a Comment