If we use a virtual host or an ECS in the Apache environment, we must know about the. htaccess file, which is an important file for controlling the pseudo static state of our website and setting directory permissions. If we use Nginx, we may not need to set this file, but Apache does. Some of our friends will ask, Where is the htaccess file ? Generally, we see that the htaccess file is in the root directory of the current website.
![Where is the htaccess file? How to create an htaccess file](https://images.laozuo.org/wp-content/uploads/2022/03/htaccess-1.jpg)
We can see that in the current ECS, there are. htaccess files. If not, we need to create them. Generally, we can create it locally and upload it to the root directory of the server website. We can also use the file manager to create it by ourselves. Don't forget that the full name is [. htaccess]. We use this file to set pseudo static, directory permissions, and permission access.
If we use a virtual host, we can also see it.
![Where is the htaccess file? How to create an htaccess file](https://images.laozuo.org/wp-content/uploads/2022/03/htaccess-2.jpg)
If we use FTP tools, we can see that some may have htaccess files, and some may be hidden. We need to set it to enable. If not, our website cannot run with pseudo static settings.
Recommend virtual host : Top 10 US virtual host/website space recommendation
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge