Reputation: 4427
My website is hosted on GoDaddy. I want to leverage browser caching, so I added an htaccess
file.
When I do, my site returns 500 error. I deleted the htaccess
file and my site returns to normal. What am I missing? Here is my htaccess
file:
//Custom 404 errors
ErrorDocument 404 404.php
//Change default directory page
DirectoryIndex index.php
//Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
//Prevent directory listings
Options All -Indexes
Thanks in advance
Upvotes: 2
Views: 101
Reputation: 139
Is this the exact htaccess
file?
#
instead of //
ErrorDocument 404 404.php
to ErrorDocument 404 /404.php
Then if problem still exists, try this too:
Options All -Indexes
to IndexIgnore
Upvotes: 4