About the htaccess file

Asked

Viewed 161 times

0

At the time of commissioning data from APACHE servers with PHP, what should we do about the file ".htacess"?

1 answer

1

I did not understand the doubt well, but first correct the name for .htacess for .htaccess (two letters c and two letters s), should work.

The .htaccess is not directly connected and is not necessary for you to "consume" the data, Apache is the server, PHP is the dynamic language of server-side (we call it server-side).

mysql is another server which is accessed by the PHP Apis.

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

  • Create custom Urls (if enabled mod_rewrite)
  • Control page headers, such as cache usage (if enabled mod_headers)
  • Control directory permissions

Apart from a number of other modules like in the Apache tutorial: http://httpd.apache.org/docs/current/howto/htaccess.html

  • 1

    @If the feedback answer is something like "rewrite urls", then the proof is wrong (believe me, I’ve seen bizarre things like this), we can say. htaccess is for configuring Apache modules from which to allow the context of . htaccess (it has an Apache module that can only be configured in httpd.conf, ie requires part of the server administrator), who rewrites the Urls is module "mod_rewrite", the . htaccess only allows you to configure it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.