About the htaccess file

0

When commissioning data from APACHE servers with PHP, what should we do about the .htacess file?

    
asked by anonymous 23.05.2017 / 19:11

1 answer

2

I do not quite understand the question, but first correct the name for .htacess to .htaccess (two letters c and two letters s ), it should work.

The .htaccess does not have direct binding and is not necessary for it to consume data, Apache is the server, PHP is the dynamic language of the server side (we call server-side ).

mysql is another server that is accessed by the PHP APIs.

And .htaccess is something that is used to adjust some Apache and Apache configuration settings, for example:

  • Create custom URLs (if you have enabled mod_rewrite )
  • Control page headers, such as caching (if you have enabled module mod_headers )
  • Controlling directory permissions

There were a number of other modules as in the Apache tutorial: link

    
23.05.2017 / 19:17