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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -