Focus on cloud service provider activities
Notes on website operation and maintenance

Where is the htaccess file? How to create an htaccess file

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

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

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

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Where is the htaccess file? How to create an htaccess file


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge