php - htaccess / custom 404 page - everything seem to be fine, but it does not work (frustrated) -
<files ~ "^\.(htaccess|htpasswd)$"> deny </files> options indexes errordocument 404 new404.html order deny,allow
- file without name extension .thaccess
- it in main domain folder index page , others.
- new 404 page called new404.html , in same folder htaccess file.
i checked code few guides on htaccess topic, , seem fine.
i appreciate suggestions.
you can't write in 1 line must
options -indexes errordocument 404 new404.html <files ~ "^\.(htaccess|htpasswd)$"> deny </files>
Comments
Post a Comment