In PHP : What is the .htaccess file and what it will do? -


can 1 give simple , brief answer .htaccess file. describe in simple , understandable world.

.htaccess configuration file use on web servers running apache web server software. when .htaccess file placed in directory in turn 'loaded via apache web server', .htaccess file detected , executed apache web server software. these .htaccess files can used alter configuration of apache web server software enable/disable additional functionality , features apache web server software has offer. these facilities include basic redirect functionality, instance if 404 file not found error occurs, or more advanced functions such content password protection or image hot link prevention.

here example of might include in .htaccess file.

authname "member's area name" authuserfile /path/to/password/file/.htpasswd authtype basic require valid-user errordocument 401 /error_pages/401.html addhandler server-parsed .html  

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -